@@ -153,6 +153,7 @@ public interface WxCpExternalContactService {
153
153
154
154
/**
155
155
* 企业和服务商可通过此接口,将微信外部联系人的userid转为微信openid,用于调用支付相关接口。暂不支持企业微信外部联系人(ExternalUserid为wo开头)的userid转openid。
156
+ *
156
157
* @param externalUserid 微信外部联系人的userid
157
158
* @return 该企业的外部联系人openid
158
159
* @throws WxErrorException .
@@ -174,13 +175,13 @@ public interface WxCpExternalContactService {
174
175
* 第三方/自建应用调用时,返回的跟进人follow_user仅包含应用可见范围之内的成员。
175
176
* </pre>
176
177
*
177
- * @param userId 企业成员的userid ,注意不是外部联系人的帐号
178
- * @param cursor the cursor
179
- * @param limit the limit
178
+ * @param userIdList 企业成员的userid列表 ,注意不是外部联系人的帐号
179
+ * @param cursor the cursor
180
+ * @param limit the limit
180
181
* @return wx cp user external contact batch info
181
182
* @throws WxErrorException .
182
183
*/
183
- WxCpExternalContactBatchInfo getContactDetailBatch (String userId , String cursor ,
184
+ WxCpExternalContactBatchInfo getContactDetailBatch (String [] userIdList , String cursor ,
184
185
Integer limit )
185
186
throws WxErrorException ;
186
187
@@ -250,24 +251,25 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
250
251
* @param takeOverUserid the take over userid
251
252
* @return wx cp base resp
252
253
* @throws WxErrorException the wx error exception
253
- * @deprecated 此后续将不再更新维护,建议使用 {@link #transferCustomer(WxCpUserTransferCustomerReq)}
254
+ * @deprecated 此后续将不再更新维护, 建议使用 {@link #transferCustomer(WxCpUserTransferCustomerReq)}
254
255
*/
255
256
@ Deprecated
256
257
WxCpBaseResp transferExternalContact (String externalUserid , String handOverUserid , String takeOverUserid ) throws WxErrorException ;
257
258
258
259
/**
259
260
* 企业可通过此接口,转接在职成员的客户给其他成员。
260
- * <per>
261
+ * <per>
261
262
* external_userid必须是handover_userid的客户(即配置了客户联系功能的成员所添加的联系人)。
262
263
* 在职成员的每位客户最多被分配2次。客户被转接成功后,将有90个自然日的服务关系保护期,保护期内的客户无法再次被分配。
263
- *
264
+ * <p>
264
265
* 权限说明:
265
- * * 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。
266
+ * * 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。
266
267
* 第三方应用需拥有“企业客户权限->客户联系->在职继承”权限
267
268
* 接替成员必须在此第三方应用或自建应用的可见范围内。
268
269
* 接替成员需要配置了客户联系功能。
269
270
* 接替成员需要在企业微信激活且已经过实名认证。
270
- * </per>
271
+ * </per>
272
+ *
271
273
* @param req 转接在职成员的客户给其他成员请求实体
272
274
* @return wx cp base resp
273
275
* @throws WxErrorException the wx error exception
@@ -277,35 +279,37 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
277
279
/**
278
280
* 企业和第三方可通过此接口查询在职成员的客户转接情况。
279
281
* <per>
280
- * 权限说明:
281
- *
282
+ * 权限说明:
283
+ * <p>
282
284
* 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。
283
285
* 第三方应用需拥有“企业客户权限->客户联系->在职继承”权限
284
286
* 接替成员必须在此第三方应用或自建应用的可见范围内。
285
287
* </per>
288
+ *
286
289
* @param handOverUserid 原添加成员的userid
287
290
* @param takeOverUserid 接替成员的userid
288
- * @param cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;
291
+ * @param cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;
289
292
* @return 客户转接接口实体
290
293
* @throws WxErrorException the wx error exception
291
294
*/
292
- WxCpUserTransferResultResp transferResult (@ NotNull String handOverUserid , @ NotNull String takeOverUserid , String cursor ) throws WxErrorException ;
295
+ WxCpUserTransferResultResp transferResult (@ NotNull String handOverUserid , @ NotNull String takeOverUserid , String cursor ) throws WxErrorException ;
293
296
294
297
/**
295
298
* 企业可通过此接口,分配离职成员的客户给其他成员。
296
- * <per>
299
+ * <per>
297
300
* handover_userid必须是已离职用户。
298
301
* external_userid必须是handover_userid的客户(即配置了客户联系功能的成员所添加的联系人)。
299
302
* 在职成员的每位客户最多被分配2次。客户被转接成功后,将有90个自然日的服务关系保护期,保护期内的客户无法再次被分配。
300
- *
303
+ * <p>
301
304
* 权限说明:
302
- *
305
+ * <p>
303
306
* 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。
304
307
* 第三方应用需拥有“企业客户权限->客户联系->离职分配”权限
305
308
* 接替成员必须在此第三方应用或自建应用的可见范围内。
306
309
* 接替成员需要配置了客户联系功能。
307
310
* 接替成员需要在企业微信激活且已经过实名认证。
308
- * </per>
311
+ * </per>
312
+ *
309
313
* @param req 转接在职成员的客户给其他成员请求实体
310
314
* @return wx cp base resp
311
315
* @throws WxErrorException the wx error exception
@@ -316,18 +320,19 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
316
320
* 企业和第三方可通过此接口查询离职成员的客户分配情况。
317
321
* <per>
318
322
* 权限说明:
319
- *
323
+ * <p>
320
324
* 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。
321
325
* 第三方应用需拥有“企业客户权限->客户联系->在职继承”权限
322
326
* 接替成员必须在此第三方应用或自建应用的可见范围内。
323
327
* </per>
328
+ *
324
329
* @param handOverUserid 原添加成员的userid
325
330
* @param takeOverUserid 接替成员的userid
326
- * @param cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;
331
+ * @param cursor 分页查询的cursor,每个分页返回的数据不会超过1000条;不填或为空表示获取第一个分页;
327
332
* @return 客户转接接口实体
328
333
* @throws WxErrorException the wx error exception
329
334
*/
330
- WxCpUserTransferResultResp resignedTransferResult (@ NotNull String handOverUserid , @ NotNull String takeOverUserid , String cursor ) throws WxErrorException ;
335
+ WxCpUserTransferResultResp resignedTransferResult (@ NotNull String handOverUserid , @ NotNull String takeOverUserid , String cursor ) throws WxErrorException ;
331
336
332
337
/**
333
338
* <pre>
@@ -337,14 +342,14 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
337
342
* 微信文档:https://work.weixin.qq.com/api/doc/90000/90135/92119
338
343
* </pre>
339
344
*
340
- * @deprecated 请使用 {@link WxCpExternalContactService#listGroupChat(Integer, String, int, String[])}
341
345
* @param pageIndex the page index
342
346
* @param pageSize the page size
343
347
* @param status the status
344
348
* @param userIds the user ids
345
349
* @param partyIds the party ids
346
350
* @return the wx cp user external group chat list
347
351
* @throws WxErrorException the wx error exception
352
+ * @deprecated 请使用 {@link WxCpExternalContactService#listGroupChat(Integer, String, int, String[])}
348
353
*/
349
354
@ Deprecated
350
355
WxCpUserExternalGroupChatList listGroupChat (Integer pageIndex , Integer pageSize , int status , String [] userIds , String [] partyIds ) throws WxErrorException ;
@@ -357,10 +362,10 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
357
362
* 微信文档:https://work.weixin.qq.com/api/doc/90000/90135/92119
358
363
* </pre>
359
364
*
360
- * @param limit 分页,预期请求的数据量,取值范围 1 ~ 1000
361
- * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填
362
- * @param status 客户群跟进状态过滤。0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0
363
- * @param userIds 群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017);用户ID列表。最多100个
365
+ * @param limit 分页,预期请求的数据量,取值范围 1 ~ 1000
366
+ * @param cursor 用于分页查询的游标,字符串类型,由上一次调用返回,首次调用不填
367
+ * @param status 客户群跟进状态过滤。0 - 所有列表(即不过滤) 1 - 离职待继承 2 - 离职继承中 3 - 离职继承完成 默认为0
368
+ * @param userIds 群主过滤。如果不填,表示获取应用可见范围内全部群主的数据(但是不建议这么用,如果可见范围人数超过1000人,为了防止数据包过大,会报错 81017);用户ID列表。最多100个
364
369
* @return the wx cp user external group chat list
365
370
* @throws WxErrorException the wx error exception
366
371
*/
@@ -381,30 +386,30 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
381
386
WxCpUserExternalGroupChatInfo getGroupChat (String chatId , Integer needName ) throws WxErrorException ;
382
387
383
388
/**
384
- *
385
389
* 企业可通过此接口,将已离职成员为群主的群,分配给另一个客服成员。
386
390
*
387
391
* <per>
388
392
* 注意::
389
- *
393
+ * <p>
390
394
* 群主离职了的客户群,才可继承
391
395
* 继承给的新群主,必须是配置了客户联系功能的成员
392
396
* 继承给的新群主,必须有设置实名
393
397
* 继承给的新群主,必须有激活企业微信
394
398
* 同一个人的群,限制每天最多分配300个给新群主
395
- *
399
+ * <p>
396
400
* 权限说明:
397
- *
401
+ * <p>
398
402
* 企业需要使用“客户联系”secret或配置到“可调用应用”列表中的自建应用secret所获取的accesstoken来调用(accesstoken如何获取?)。
399
403
* 第三方应用需拥有“企业客户权限->客户联系->分配离职成员的客户群”权限
400
404
* 对于第三方/自建应用,群主必须在应用的可见范围。
401
405
* </per>
402
- * @param chatIds 需要转群主的客户群ID列表。取值范围: 1 ~ 100
403
- * @param newOwner 新群主ID
406
+ *
407
+ * @param chatIds 需要转群主的客户群ID列表。取值范围: 1 ~ 100
408
+ * @param newOwner 新群主ID
404
409
* @return 分配结果,主要是分配失败的群列表
405
- * @throws WxErrorException the wx error exception
410
+ * @throws WxErrorException the wx error exception
406
411
*/
407
- WxCpUserExternalGroupChatTransferResp transferGroupChat (String [] chatIds , String newOwner ) throws WxErrorException ;
412
+ WxCpUserExternalGroupChatTransferResp transferGroupChat (String [] chatIds , String newOwner ) throws WxErrorException ;
408
413
409
414
/**
410
415
* <pre>
@@ -497,7 +502,7 @@ WxCpExternalContactBatchInfo getContactDetailBatch(String userId, String cursor,
497
502
* 同时传递tag_id和group_id时,忽略tag_id,仅以group_id作为过滤条件。
498
503
* </pre>
499
504
*
500
- * @param tagId the tag id
505
+ * @param tagId the tag id
501
506
* @param groupId the tagGroup id
502
507
* @return corp tag list
503
508
* @throws WxErrorException the wx error exception
0 commit comments