WeCustomerClient.java
2.34 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
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.WeWelcomeMsg;
import com.linkwechat.wecom.domain.dto.customer.CutomerTagEdit;
import com.linkwechat.wecom.domain.dto.customer.ExternalUserDetail;
import com.linkwechat.wecom.domain.dto.customer.ExternalUserList;
import com.linkwechat.wecom.domain.dto.customer.FollowUserList;
import java.util.Map;
/**
* @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);
/**
* 根据企业成员id批量获取客户详情
* @param query
* @return
*/
@Request(url = "/externalcontact/batch/get_by_user", type = "POST")
ExternalUserList getByUser(@DataObject Map<String,Object> query);
/**
* 修改客户备注信息
* @param weCustomerRemark
* @return
*/
@Request(url="/externalcontact/remark",
type = "POST"
)
WeResultDto remark(@DataObject WeCustomerDto.WeCustomerRemark weCustomerRemark);
/**
* 编辑客户标签
* @return
*/
@Request(url = "/externalcontact/mark_tag",
type = "POST"
)
WeResultDto makeCustomerLabel(@DataObject CutomerTagEdit cutomerTagEdit);
/**
* 客户发送欢迎语
*/
@Request(url = "/externalcontact/send_welcome_msg",
type = "POST")
WeResultDto sendWelcomeMsg(@DataObject WeWelcomeMsg wxCpWelcomeMsg);
}