@@ -33,7 +33,7 @@ public interface WxCpService {
33
33
* @param data 微信传输过来的数据,有可能是echoStr,有可能是xml消息
34
34
* @return
35
35
*/
36
- public boolean checkSignature (String msgSignature , String timestamp , String nonce , String data );
36
+ boolean checkSignature (String msgSignature , String timestamp , String nonce , String data );
37
37
38
38
/**
39
39
* <pre>
@@ -43,15 +43,15 @@ public interface WxCpService {
43
43
*
44
44
* @param userId
45
45
*/
46
- public void userAuthenticated (String userId ) throws WxErrorException ;
46
+ void userAuthenticated (String userId ) throws WxErrorException ;
47
47
48
48
/**
49
49
* 获取access_token, 不强制刷新access_token
50
50
* @see #getAccessToken(boolean)
51
51
* @return
52
52
* @throws WxErrorException
53
53
*/
54
- public String getAccessToken () throws WxErrorException ;
54
+ String getAccessToken () throws WxErrorException ;
55
55
56
56
/**
57
57
* <pre>
@@ -65,7 +65,7 @@ public interface WxCpService {
65
65
* @return
66
66
* @throws me.chanjar.weixin.common.exception.WxErrorException
67
67
*/
68
- public String getAccessToken (boolean forceRefresh ) throws WxErrorException ;
68
+ String getAccessToken (boolean forceRefresh ) throws WxErrorException ;
69
69
70
70
/**
71
71
* <pre>
@@ -83,7 +83,7 @@ public interface WxCpService {
83
83
* @param inputStream 输入流
84
84
* @throws WxErrorException
85
85
*/
86
- public WxMediaUploadResult mediaUpload (String mediaType , String fileType , InputStream inputStream )
86
+ WxMediaUploadResult mediaUpload (String mediaType , String fileType , InputStream inputStream )
87
87
throws WxErrorException , IOException ;
88
88
89
89
/**
@@ -92,7 +92,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
92
92
* @throws WxErrorException
93
93
* @see #mediaUpload(String, String, InputStream)
94
94
*/
95
- public WxMediaUploadResult mediaUpload (String mediaType , File file ) throws WxErrorException ;
95
+ WxMediaUploadResult mediaUpload (String mediaType , File file ) throws WxErrorException ;
96
96
97
97
/**
98
98
* <pre>
@@ -105,7 +105,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
105
105
* @throws WxErrorException
106
106
* @params media_id
107
107
*/
108
- public File mediaDownload (String media_id ) throws WxErrorException ;
108
+ File mediaDownload (String media_id ) throws WxErrorException ;
109
109
110
110
/**
111
111
* <pre>
@@ -116,7 +116,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
116
116
* @param message
117
117
* @throws WxErrorException
118
118
*/
119
- public void messageSend (WxCpMessage message ) throws WxErrorException ;
119
+ void messageSend (WxCpMessage message ) throws WxErrorException ;
120
120
121
121
/**
122
122
* <pre>
@@ -127,7 +127,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
127
127
* @param menu
128
128
* @throws WxErrorException
129
129
*/
130
- public void menuCreate (WxMenu menu ) throws WxErrorException ;
130
+ void menuCreate (WxMenu menu ) throws WxErrorException ;
131
131
132
132
/**
133
133
* <pre>
@@ -137,7 +137,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
137
137
*
138
138
* @throws WxErrorException
139
139
*/
140
- public void menuDelete () throws WxErrorException ;
140
+ void menuDelete () throws WxErrorException ;
141
141
142
142
/**
143
143
* <pre>
@@ -148,7 +148,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
148
148
* @return
149
149
* @throws WxErrorException
150
150
*/
151
- public WxMenu menuGet () throws WxErrorException ;
151
+ WxMenu menuGet () throws WxErrorException ;
152
152
153
153
/**
154
154
* <pre>
@@ -161,7 +161,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
161
161
* @return 部门id
162
162
* @throws WxErrorException
163
163
*/
164
- public Integer departCreate (WxCpDepart depart ) throws WxErrorException ;
164
+ Integer departCreate (WxCpDepart depart ) throws WxErrorException ;
165
165
166
166
/**
167
167
* <pre>
@@ -172,7 +172,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
172
172
* @return
173
173
* @throws WxErrorException
174
174
*/
175
- public List <WxCpDepart > departGet () throws WxErrorException ;
175
+ List <WxCpDepart > departGet () throws WxErrorException ;
176
176
177
177
/**
178
178
* <pre>
@@ -184,7 +184,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
184
184
* @param group 要更新的group,group的id,name必须设置
185
185
* @throws WxErrorException
186
186
*/
187
- public void departUpdate (WxCpDepart group ) throws WxErrorException ;
187
+ void departUpdate (WxCpDepart group ) throws WxErrorException ;
188
188
189
189
/**
190
190
* <pre>
@@ -194,7 +194,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
194
194
* @param departId
195
195
* @throws WxErrorException
196
196
*/
197
- public void departDelete (Integer departId ) throws WxErrorException ;
197
+ void departDelete (Integer departId ) throws WxErrorException ;
198
198
199
199
/**
200
200
* http://qydev.weixin.qq.com/wiki/index.php?title=管理成员#.E8.8E.B7.E5.8F.96.E9.83.A8.E9.97.A8.E6.88.90.E5.91.98
@@ -205,31 +205,31 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
205
205
* @return
206
206
* @throws WxErrorException
207
207
*/
208
- public List <WxCpUser > departGetUsers (Integer departId , Boolean fetchChild , Integer status ) throws WxErrorException ;
208
+ List <WxCpUser > departGetUsers (Integer departId , Boolean fetchChild , Integer status ) throws WxErrorException ;
209
209
210
210
/**
211
211
* 新建用户
212
212
*
213
213
* @param user
214
214
* @throws WxErrorException
215
215
*/
216
- public void userCreate (WxCpUser user ) throws WxErrorException ;
216
+ void userCreate (WxCpUser user ) throws WxErrorException ;
217
217
218
218
/**
219
219
* 更新用户
220
220
*
221
221
* @param user
222
222
* @throws WxErrorException
223
223
*/
224
- public void userUpdate (WxCpUser user ) throws WxErrorException ;
224
+ void userUpdate (WxCpUser user ) throws WxErrorException ;
225
225
226
226
/**
227
227
* 删除用户
228
228
*
229
229
* @param userid
230
230
* @throws WxErrorException
231
231
*/
232
- public void userDelete (String userid ) throws WxErrorException ;
232
+ void userDelete (String userid ) throws WxErrorException ;
233
233
234
234
/**
235
235
* 获取用户
@@ -238,53 +238,53 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
238
238
* @return
239
239
* @throws WxErrorException
240
240
*/
241
- public WxCpUser userGet (String userid ) throws WxErrorException ;
241
+ WxCpUser userGet (String userid ) throws WxErrorException ;
242
242
243
243
/**
244
244
* 创建标签
245
245
*
246
246
* @param tagName
247
247
* @return
248
248
*/
249
- public String tagCreate (String tagName ) throws WxErrorException ;
249
+ String tagCreate (String tagName ) throws WxErrorException ;
250
250
251
251
/**
252
252
* 更新标签
253
253
*
254
254
* @param tagId
255
255
* @param tagName
256
256
*/
257
- public void tagUpdate (String tagId , String tagName ) throws WxErrorException ;
257
+ void tagUpdate (String tagId , String tagName ) throws WxErrorException ;
258
258
259
259
/**
260
260
* 删除标签
261
261
*
262
262
* @param tagId
263
263
*/
264
- public void tagDelete (String tagId ) throws WxErrorException ;
264
+ void tagDelete (String tagId ) throws WxErrorException ;
265
265
266
266
/**
267
267
* 获得标签列表
268
268
*
269
269
* @return
270
270
*/
271
- public List <WxCpTag > tagGet () throws WxErrorException ;
271
+ List <WxCpTag > tagGet () throws WxErrorException ;
272
272
273
273
/**
274
274
* 获取标签成员
275
275
*
276
276
* @param tagId
277
277
* @return
278
278
*/
279
- public List <WxCpUser > tagGetUsers (String tagId ) throws WxErrorException ;
279
+ List <WxCpUser > tagGetUsers (String tagId ) throws WxErrorException ;
280
280
281
281
/**
282
282
* 增加标签成员
283
283
*
284
284
* @param tagId
285
285
* @param userIds
286
286
*/
287
- public void tagAddUsers (String tagId , List <String > userIds ) throws WxErrorException ;
287
+ void tagAddUsers (String tagId , List <String > userIds ) throws WxErrorException ;
288
288
289
289
/**
290
290
* <pre>
@@ -294,7 +294,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
294
294
* @param state
295
295
* @return code
296
296
*/
297
- public String oauth2buildAuthorizationUrl (String state );
297
+ String oauth2buildAuthorizationUrl (String state );
298
298
299
299
/**
300
300
* <pre>
@@ -305,15 +305,15 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
305
305
* @param code
306
306
* @return [userid, deviceid]
307
307
*/
308
- public String [] oauth2getUserInfo (String code ) throws WxErrorException ;
308
+ String [] oauth2getUserInfo (String code ) throws WxErrorException ;
309
309
310
310
/**
311
311
* 移除标签成员
312
312
*
313
313
* @param tagId
314
314
* @param userIds
315
315
*/
316
- public void tagRemoveUsers (String tagId , List <String > userIds ) throws WxErrorException ;
316
+ void tagRemoveUsers (String tagId , List <String > userIds ) throws WxErrorException ;
317
317
318
318
/**
319
319
* <pre>
@@ -325,7 +325,7 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
325
325
* @return 1:微信邀请 2.邮件邀请
326
326
* @throws WxErrorException
327
327
*/
328
- public int invite (String userId , String inviteTips ) throws WxErrorException ;
328
+ int invite (String userId , String inviteTips ) throws WxErrorException ;
329
329
330
330
/**
331
331
* <pre>
@@ -369,14 +369,14 @@ public WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputS
369
369
* @return
370
370
* @throws WxErrorException
371
371
*/
372
- public <T , E > T execute (RequestExecutor <T , E > executor , String uri , E data ) throws WxErrorException ;
372
+ <T , E > T execute (RequestExecutor <T , E > executor , String uri , E data ) throws WxErrorException ;
373
373
374
374
/**
375
375
* 注入 {@link WxCpConfigStorage} 的实现
376
376
*
377
377
* @param wxConfigProvider
378
378
*/
379
- public void setWxCpConfigStorage (WxCpConfigStorage wxConfigProvider );
379
+ void setWxCpConfigStorage (WxCpConfigStorage wxConfigProvider );
380
380
381
381
/**
382
382
* <pre>
0 commit comments