IWeCustomerService.java
2.58 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
package com.linkwechat.wecom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkwechat.wecom.domain.WeCustomer;
import com.linkwechat.wecom.domain.WeUser;
import com.linkwechat.wecom.domain.dto.WeWelcomeMsg;
import com.linkwechat.wecom.domain.vo.WeLeaveUserInfoAllocateVo;
import com.linkwechat.wecom.domain.vo.WeMakeCustomerTag;
import java.util.List;
/**
* 企业微信客户Service接口
*
* @author ruoyi
* @date 2020-09-13
*/
public interface IWeCustomerService extends IService<WeCustomer>
{
/**
* 查询企业微信客户
*
* @param externalUserId 企业微信客户ID
* @return 企业微信客户
*/
public WeCustomer selectWeCustomerById(String externalUserId);
/**
* 新增/修改企业微信客户
*
* @param weCustomer 企业微信客户
* @return 修改结果
*/
@Override
public boolean saveOrUpdate(WeCustomer weCustomer);
/**
* 查询企业微信客户列表
*
* @param weCustomer 企业微信客户
* @return 企业微信客户集合
*/
public List<WeCustomer> selectWeCustomerList(WeCustomer weCustomer);
/**
* 同步客户接口
* @return
*/
public void synchWeCustomer();
/**
* 分配离职员工客户
* @param weLeaveUserInfoAllocateVo
*/
public void allocateWeCustomer(WeLeaveUserInfoAllocateVo weLeaveUserInfoAllocateVo);
/**
* 客户打标签
* @param weMakeCustomerTag
*/
public void makeLabel(WeMakeCustomerTag weMakeCustomerTag);
/**
* 移除客户标签
* @param weMakeCustomerTag
*/
public void removeLabel(WeMakeCustomerTag weMakeCustomerTag);
/**
* 根据员工ID获取客户
* @param externalUserid
* @return
*/
public List<WeUser> getCustomersByUserId(String externalUserid);
/**
* 获取客户详情并同步客户数据
* @param externalUserid
*/
public void getCustomersInfoAndSynchWeCustomer(String externalUserid);
/**
* 删除客户
* @param externalUserid
*/
public void deleteCustomersByEid(String externalUserid);
/**
* 向客户发送欢迎语
* @param weWelcomeMsg
*/
public void sendWelcomeMsg(WeWelcomeMsg weWelcomeMsg);
/**
* 修改客户是否开启会话状态
* @param externalUserId 客户id
*/
public boolean updateCustomerChatStatus(String externalUserId);
/**
* 通过标签查询客户列表
* @param ids 标签id
* @return
*/
public List<WeUser> getCustomerByTag(List<String> ids);
}