WeCustomerClient.java
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.linkwechat.wecom.client;
import com.dtflys.forest.annotation.DataObject;
import com.dtflys.forest.annotation.Query;
import com.dtflys.forest.annotation.Request;
import com.linkwechat.wecom.domain.dto.WeCustomerDto;
import com.linkwechat.wecom.domain.dto.WeResultDto;
import com.linkwechat.wecom.domain.dto.customer.ExternalUserDetail;
import com.linkwechat.wecom.domain.dto.customer.ExternalUserList;
import com.linkwechat.wecom.domain.dto.customer.FollowUserList;
/**
* @description: 获取配置客户联系人功能的成员
* @author: HaoN
* @create: 2020-09-15 14:15
**/
public interface WeCustomerClient {
/**
* 获取配置了客户联系功能的成员列表
* @return
*/
@Request(url = "/externalcontact/get_follow_user_list")
FollowUserList getFollowUserList();
/**
* 获取指定企业服务管理人员所有用的客户id
* @param userId 企业服务管理人员id(具有外部联系功能的员工)
* @return
*/
@Request(url = "/externalcontact/list")
ExternalUserList list(@Query("userid") String userId);
/**
* 根据客户id获取客户详情
* @param externalUserid
* @return
*/
@Request(url = "/externalcontact/get")
ExternalUserDetail get(@Query("external_userid") String externalUserid);
/**
* 修改客户备注信息
* @param weCustomerRemark
* @return
*/
@Request(url="/externalcontact/remark",
type = "POST"
)
WeResultDto remark(@DataObject WeCustomerDto.WeCustomerRemark weCustomerRemark);
}