Class WeChatWorkCustomerRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
com.bytedesk.wechat.work.customer.WeChatWorkCustomerRestController
@RestController
@RequestMapping("/api/v1/wechat/work/customer")
public class WeChatWorkCustomerRestController
extends BaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
企业微信-客户联系功能接口
- Author:
- kefux.com
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>批量获取客户详情org.springframework.http.ResponseEntity<?>checkFollowUser(WeChatWorkCustomerRequest request) 检查用户是否具备客户联系功能org.springframework.http.ResponseEntity<?>create(WeChatWorkCustomerRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>delete(WeChatWorkCustomerRequest request) 通用的delete实现 减少子类重复代码org.springframework.http.ResponseEntity<?>deleteCustomerStrategy(String corpId, String appSecret, Integer strategyId) 删除规则组export(WeChatWorkCustomerRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>getCustomerStrategy(String corpId, String appSecret, Integer strategyId) 获取规则组详情org.springframework.http.ResponseEntity<?>getCustomerStrategyList(String corpId, String appSecret, String cursor, Integer limit) 获取规则组列表org.springframework.http.ResponseEntity<?>getCustomerStrategyRange(String corpId, String appSecret, Integer strategyId, String cursor, Integer limit) 获取规则组管理范围org.springframework.http.ResponseEntity<?>getExternalUserDetail(String corpId, String appSecret, String externalUserId, String cursor) 获取客户详情org.springframework.http.ResponseEntity<?>getExternalUserList(String corpId, String appSecret, String userId) 获取客户列表org.springframework.http.ResponseEntity<?>getFollowUserList(String corpId, String appSecret) 获取配置了客户联系功能的成员列表org.springframework.http.ResponseEntity<?>queryByOrg(WeChatWorkCustomerRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUid(WeChatWorkCustomerRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUser(WeChatWorkCustomerRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>update(WeChatWorkCustomerRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>修改客户备注信息Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
weChatWorkCustomerService
-
-
Constructor Details
-
WeChatWorkCustomerRestController
public WeChatWorkCustomerRestController()
-
-
Method Details
-
getFollowUserList
@GetMapping("/follow_user_list") public org.springframework.http.ResponseEntity<?> getFollowUserList(@RequestParam String corpId, @RequestParam String appSecret) 获取配置了客户联系功能的成员列表- Parameters:
corpId- 企业IDappSecret- 应用密钥- Returns:
- 成员列表
-
checkFollowUser
@PostMapping("/check_follow_user") public org.springframework.http.ResponseEntity<?> checkFollowUser(@RequestBody WeChatWorkCustomerRequest request) 检查用户是否具备客户联系功能- Parameters:
request- 请求对象- Returns:
- 检查结果
-
getExternalUserList
@GetMapping("/list") public org.springframework.http.ResponseEntity<?> getExternalUserList(@RequestParam String corpId, @RequestParam String appSecret, @RequestParam String userId) 获取客户列表- Parameters:
corpId- 企业IDappSecret- 应用密钥userId- 企业成员的userid- Returns:
- 客户列表
-
getExternalUserDetail
@GetMapping("/get") public org.springframework.http.ResponseEntity<?> getExternalUserDetail(@RequestParam String corpId, @RequestParam String appSecret, @RequestParam String externalUserId, @RequestParam(required=false) String cursor) 获取客户详情- Parameters:
corpId- 企业IDappSecret- 应用密钥externalUserId- 外部联系人的useridcursor- 分页游标- Returns:
- 客户详情
-
batchGetExternalUserDetail
@PostMapping("/batch_get") public org.springframework.http.ResponseEntity<?> batchGetExternalUserDetail(@RequestBody WeChatWorkCustomerRequest request) 批量获取客户详情- Parameters:
request- 请求对象- Returns:
- 客户详情列表
-
updateExternalUserRemark
@PostMapping("/remark") public org.springframework.http.ResponseEntity<?> updateExternalUserRemark(@RequestBody WeChatWorkCustomerRequest request) 修改客户备注信息- Parameters:
request- 请求对象- Returns:
- 修改结果
-
getCustomerStrategyList
@GetMapping("/strategy/list") public org.springframework.http.ResponseEntity<?> getCustomerStrategyList(@RequestParam String corpId, @RequestParam String appSecret, @RequestParam(required=false) String cursor, @RequestParam(required=false) Integer limit) 获取规则组列表- Parameters:
corpId- 企业IDappSecret- 应用密钥cursor- 分页游标,首次调用可不填limit- 分页大小,默认为1000,最大不超过1000- Returns:
- 规则组列表
-
getCustomerStrategy
@GetMapping("/strategy/get") public org.springframework.http.ResponseEntity<?> getCustomerStrategy(@RequestParam String corpId, @RequestParam String appSecret, @RequestParam Integer strategyId) 获取规则组详情- Parameters:
corpId- 企业IDappSecret- 应用密钥strategyId- 规则组id- Returns:
- 规则组详情
-
getCustomerStrategyRange
@GetMapping("/strategy/range") public org.springframework.http.ResponseEntity<?> getCustomerStrategyRange(@RequestParam String corpId, @RequestParam String appSecret, @RequestParam Integer strategyId, @RequestParam(required=false) String cursor, @RequestParam(required=false) Integer limit) 获取规则组管理范围- Parameters:
corpId- 企业IDappSecret- 应用密钥strategyId- 规则组idcursor- 分页游标limit- 分页大小,默认为1000,最大不超过1000- Returns:
- 规则组管理范围
-
deleteCustomerStrategy
@GetMapping("/strategy/delete") public org.springframework.http.ResponseEntity<?> deleteCustomerStrategy(@RequestParam String corpId, @RequestParam String appSecret, @RequestParam Integer strategyId) 删除规则组- Parameters:
corpId- 企业IDappSecret- 应用密钥strategyId- 规则组id- Returns:
- 删除结果
-
queryByOrg
Description copied from class:BaseRestController通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrgin classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
-
queryByUser
Description copied from class:BaseRestController通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUserin classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
-
queryByUid
Description copied from class:BaseRestController通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUidin classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
-
create
Description copied from class:BaseRestController通用的create实现 减少子类重复代码- Overrides:
createin classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
-
update
Description copied from class:BaseRestController通用的update实现 减少子类重复代码- Overrides:
updatein classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
-
delete
Description copied from class:BaseRestController通用的delete实现 减少子类重复代码- Overrides:
deletein classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService>
-
export
public Object export(WeChatWorkCustomerRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestControllerexport- Overrides:
exportin classBaseRestController<WeChatWorkCustomerRequest,WeChatWorkCustomerRestService> - Parameters:
request- role- Returns:
- json
-