@@ -19,10 +19,11 @@ public interface WxMpMaterialService {
19
19
20
20
/**
21
21
* 新增临时素材
22
- * @see #mediaUpload(String, String, InputStream)
22
+ *
23
23
* @param mediaType
24
24
* @param file
25
25
* @throws WxErrorException
26
+ * @see #mediaUpload(String, String, InputStream)
26
27
*/
27
28
public WxMediaUploadResult mediaUpload (String mediaType , File file ) throws WxErrorException ;
28
29
@@ -33,6 +34,7 @@ public interface WxMpMaterialService {
33
34
* 根据微信文档,视频文件下载不了,会返回null
34
35
* 详情请见: <a href="http://mp.weixin.qq.com/wiki/9/677a85e3f3849af35de54bb5516c2521.html">获取临时素材</a>
35
36
* </pre>
37
+ *
36
38
* @param media_id
37
39
* @return 保存到本地的临时文件
38
40
* @throws WxErrorException
@@ -44,6 +46,7 @@ public interface WxMpMaterialService {
44
46
* 上传图文消息内的图片获取URL
45
47
* 详情请见:http://mp.weixin.qq.com/wiki/15/40b6865b893947b764e2de8e4a1fb55f.html#.E4.B8.8A.E4.BC.A0.E5.9B.BE.E6.96.87.E6.B6.88.E6.81.AF.E5.86.85.E7.9A.84.E5.9B.BE.E7.89.87.E8.8E.B7.E5.8F.96URL.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91
46
48
* </pre>
49
+ *
47
50
* @param file
48
51
* @return WxMediaImgUploadResult 返回图片url
49
52
* @throws WxErrorException
@@ -63,9 +66,10 @@ public interface WxMpMaterialService {
63
66
*
64
67
* 详情请见: <a href="http://mp.weixin.qq.com/wiki/15/2d353966323806a202cd2deaafe8e557.html">新增临时素材</a>
65
68
* </pre>
66
- * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts}
67
- * @param fileType 文件类型,请看{@link me.chanjar.weixin.common.api.WxConsts}
68
- * @param inputStream 输入流
69
+ *
70
+ * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts}
71
+ * @param fileType 文件类型,请看{@link me.chanjar.weixin.common.api.WxConsts}
72
+ * @param inputStream 输入流
69
73
* @throws WxErrorException
70
74
*/
71
75
public WxMediaUploadResult mediaUpload (String mediaType , String fileType , InputStream inputStream ) throws WxErrorException , IOException ;
@@ -82,8 +86,9 @@ public interface WxMpMaterialService {
82
86
*
83
87
* 详情请见: http://mp.weixin.qq.com/wiki/14/7e6c03263063f4813141c3e17dd4350a.html
84
88
* </pre>
85
- * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts}
86
- * @param material 上传的素材, 请看{@link me.chanjar.weixin.mp.bean.WxMpMaterial}
89
+ *
90
+ * @param mediaType 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts}
91
+ * @param material 上传的素材, 请看{@link me.chanjar.weixin.mp.bean.WxMpMaterial}
87
92
*/
88
93
public WxMpMaterialUploadResult materialFileUpload (String mediaType , WxMpMaterial material ) throws WxErrorException ;
89
94
@@ -93,7 +98,8 @@ public interface WxMpMaterialService {
93
98
*
94
99
* 详情请见: http://mp.weixin.qq.com/wiki/14/7e6c03263063f4813141c3e17dd4350a.html
95
100
* </pre>
96
- * @param news 上传的图文消息, 请看{@link me.chanjar.weixin.mp.bean.WxMpMaterialNews}
101
+ *
102
+ * @param news 上传的图文消息, 请看{@link me.chanjar.weixin.mp.bean.WxMpMaterialNews}
97
103
*/
98
104
public WxMpMaterialUploadResult materialNewsUpload (WxMpMaterialNews news ) throws WxErrorException ;
99
105
@@ -103,7 +109,8 @@ public interface WxMpMaterialService {
103
109
*
104
110
* 详情请见: http://mp.weixin.qq.com/wiki/4/b3546879f07623cb30df9ca0e420a5d0.html
105
111
* </pre>
106
- * @param media_id 永久素材的id
112
+ *
113
+ * @param media_id 永久素材的id
107
114
*/
108
115
public InputStream materialImageOrVoiceDownload (String media_id ) throws WxErrorException ;
109
116
@@ -113,7 +120,8 @@ public interface WxMpMaterialService {
113
120
*
114
121
* 详情请见: http://mp.weixin.qq.com/wiki/4/b3546879f07623cb30df9ca0e420a5d0.html
115
122
* </pre>
116
- * @param media_id 永久素材的id
123
+ *
124
+ * @param media_id 永久素材的id
117
125
*/
118
126
public WxMpMaterialVideoInfoResult materialVideoInfo (String media_id ) throws WxErrorException ;
119
127
@@ -123,7 +131,8 @@ public interface WxMpMaterialService {
123
131
*
124
132
* 详情请见: http://mp.weixin.qq.com/wiki/4/b3546879f07623cb30df9ca0e420a5d0.html
125
133
* </pre>
126
- * @param media_id 永久素材的id
134
+ *
135
+ * @param media_id 永久素材的id
127
136
*/
128
137
public WxMpMaterialNews materialNewsInfo (String media_id ) throws WxErrorException ;
129
138
@@ -133,7 +142,8 @@ public interface WxMpMaterialService {
133
142
*
134
143
* 详情请见: http://mp.weixin.qq.com/wiki/4/19a59cba020d506e767360ca1be29450.html
135
144
* </pre>
136
- * @param wxMpMaterialArticleUpdate 用来更新图文素材的bean, 请看{@link me.chanjar.weixin.mp.bean.WxMpMaterialArticleUpdate}
145
+ *
146
+ * @param wxMpMaterialArticleUpdate 用来更新图文素材的bean, 请看{@link me.chanjar.weixin.mp.bean.WxMpMaterialArticleUpdate}
137
147
*/
138
148
public boolean materialNewsUpdate (WxMpMaterialArticleUpdate wxMpMaterialArticleUpdate ) throws WxErrorException ;
139
149
@@ -143,7 +153,8 @@ public interface WxMpMaterialService {
143
153
*
144
154
* 详情请见: http://mp.weixin.qq.com/wiki/5/e66f61c303db51a6c0f90f46b15af5f5.html
145
155
* </pre>
146
- * @param media_id 永久素材的id
156
+ *
157
+ * @param media_id 永久素材的id
147
158
*/
148
159
public boolean materialDelete (String media_id ) throws WxErrorException ;
149
160
@@ -162,8 +173,9 @@ public interface WxMpMaterialService {
162
173
*
163
174
* 详情请见: http://mp.weixin.qq.com/wiki/12/2108cd7aafff7f388f41f37efa710204.html
164
175
* </pre>
165
- * @param offset 从全部素材的该偏移位置开始返回,0表示从第一个素材 返回
166
- * @param count 返回素材的数量,取值在1到20之间
176
+ *
177
+ * @param offset 从全部素材的该偏移位置开始返回,0表示从第一个素材 返回
178
+ * @param count 返回素材的数量,取值在1到20之间
167
179
*/
168
180
public WxMpMaterialNewsBatchGetResult materialNewsBatchGet (int offset , int count ) throws WxErrorException ;
169
181
@@ -173,9 +185,10 @@ public interface WxMpMaterialService {
173
185
*
174
186
* 详情请见: http://mp.weixin.qq.com/wiki/12/2108cd7aafff7f388f41f37efa710204.html
175
187
* </pre>
176
- * @param type 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts}
177
- * @param offset 从全部素材的该偏移位置开始返回,0表示从第一个素材 返回
178
- * @param count 返回素材的数量,取值在1到20之间
188
+ *
189
+ * @param type 媒体类型, 请看{@link me.chanjar.weixin.common.api.WxConsts}
190
+ * @param offset 从全部素材的该偏移位置开始返回,0表示从第一个素材 返回
191
+ * @param count 返回素材的数量,取值在1到20之间
179
192
*/
180
193
public WxMpMaterialFileBatchGetResult materialFileBatchGet (String type , int offset , int count ) throws WxErrorException ;
181
194
0 commit comments