IWeUserService.java
3.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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
package com.linkwechat.wecom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkwechat.wecom.domain.WeCustomerAddUser;
import com.linkwechat.wecom.domain.WeUser;
import com.linkwechat.wecom.domain.dto.msgaudit.WeMsgAuditDto;
import com.linkwechat.wecom.domain.vo.*;
import java.util.List;
/**
* 通讯录相关客户Service接口
*
* @author ruoyi
* @date 2020-08-31
*/
public interface IWeUserService extends IService<WeUser>
{
/**
* 根据id查询通讯录相关客户
*
* @param idList id列表
* @return 通讯录相关客户
*/
public List<WeUser> getListByIds(List<Long> idList);
/**
* 根据id查询通讯录相关客户
* @param id
* @return
*/
public WeUser getById(Long id);
/**
* 查询通讯录相关客户
*
* @param userId 通讯录相关客户ID
* @return 通讯录相关客户
*/
public WeUser getByUserId(String userId);
/**
* 查询通讯录相关客户列表
*
* @param weUser 通讯录相关客户
* @return 通讯录相关客户集合
*/
public List<WeUser> getList(WeUser weUser);
/**
* 新增通讯录相关客户
*
* @param weUser 通讯录相关客户
* @return 结果
*/
public void insert(WeUser weUser);
/**
* 新增通讯录相关客户(不同步企微)
* @param weUser 通讯录相关客户
* @return
*/
public boolean insert2Data(WeUser weUser);
/**
* 修改通讯录相关客户
*
* @param weUser 通讯录相关客户
* @return 结果
*/
public void update(WeUser weUser);
/**
* 修改通讯录相关客户(不同步企微)
* @param weUser 通讯录相关客户
* @return
*/
public boolean update2Data(WeUser weUser);
/**
* 启用或禁用用户
* @return
*/
public void startOrStop(WeUser weUser);
/**
* 离职未分配员工
* @param weLeaveUserVo
* @return
*/
List<WeLeaveUserVo> leaveNoAllocateUserList(WeLeaveUserVo weLeaveUserVo);
/**
* 离职已分配员工
* @param weLeaveUserVo
* @return
*/
List<WeLeaveUserVo> leaveAllocateUserList(WeLeaveUserVo weLeaveUserVo);
/**
* 离职分配
* @param weLeaveUserInfoAllocateVo
*/
void allocateLeaveUserAboutData(WeLeaveUserInfoAllocateVo weLeaveUserInfoAllocateVo);
/**
* 同步成员
*/
void synchWeUser();
/**
* 删除用户
* @param userIds
*/
void deleteUser(String[] userIds);
/**
* 删除成员
* @param userId 成员id
* @return
*/
boolean deleteUserNoToWeCom(String userId);
/**
* 获取历史分配记录的成员
* @param weAllocateCustomersVo
* @return
*/
List<WeAllocateCustomersVo> getAllocateCustomers(WeAllocateCustomersVo weAllocateCustomersVo);
/**
* 获取历史分配群
* @param weAllocateGroupsVo
* @return
*/
List<WeAllocateGroupsVo> getAllocateGroups(WeAllocateGroupsVo weAllocateGroupsVo);
/**
* 获取会话内容存档开启成员列表
* @return
*/
List<WeUser> getPermitUserList(WeMsgAuditDto msgAuditDto);
/**
* 获取访问用户身份(内部应用)
* @param code
* @return
*/
WeUserInfoVo getUserInfo(String code,String agentId);
/**
* 根据客户id获取客户添加人
* @param externalUserid
* @return
*/
List<WeCustomerAddUser> findWeUserByCustomerId(String externalUserid);
}