EntmicroStaffRemote.java
10.7 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
package cn.com.glsx.entmicro.remote;
import cn.com.glsx.entmicro.model.request.*;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.login.WechatDepositRequest;
import cn.com.glsx.entmicro.model.response.EntmicroFollowerStaffResponse;
import cn.com.glsx.entmicro.model.response.EntmicroStaffResponse;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;
/**
* @author Lichongyuan
* @Description:
* @date 2021/9/16 13:55
*/
@ApiService(value = "企微员工服务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "EntmicroStaffRemote", owner = "lichongyuan")
public interface EntmicroStaffRemote {
/**
* 新增员工
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("新增员工")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "新增员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("新增员工")
RpcResponse<Boolean> saveEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);
/**
* 修改员工信息
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("修改员工信息")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "修改员工信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("修改员工信息")
RpcResponse<Boolean> upateEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);
/**
* 删除员工信息
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("删除员工信息")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "删除员工信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("删除员工信息")
RpcResponse<Boolean> deleteEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);
/**
* 查询外部联系人列表
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("查询外部联系人权限列表")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "查询外部联系人权限列表", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("查询外部联系人权限列表")
RpcResponse<List<EntmicroStaffResponse>> listOutSideContactStaff(EntmicroStaffRequest entmicroStaffRequest);
/**
* 同步外部联系人权限企微员工
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("同步外部联系人权限企微员工")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "同步外部联系人权限企微员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步外部联系人权限企微员工")
RpcResponse<Boolean> syncEntmicroIsOutsiderStaff(EntmicroStaffRequest entmicroStaffRequest);
/**
* 企微端登录
*
* @param phoneAuthorizeRequest
* @return
*/
@ApiMethod("企微端登录")
@ApiParams({@ApiParam(name = "phoneAuthorizeRequest", notes = "企微端登录", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("企微端登录")
RpcResponse<Boolean> entmicroLogin(PhoneAuthorizeRequest phoneAuthorizeRequest);
/**
* 查询跟进员工
*
* @param staffRequestDTO
* @return
*/
@ApiMethod("查询跟进员工")
@ApiParams({@ApiParam(name = "staffRequestDTO", notes = "查询跟进员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("查询跟进员工")
RpcResponse<List<EntmicroStaffResponse>> findFollowStaff(StaffRequestDTO staffRequestDTO);
/**
* 查询员工详情
*
* @param staffRequestDTO
* @return
*/
@ApiMethod("查询员工详情")
@ApiParams({@ApiParam(name = "staffRequestDTO", notes = "查询员工详情", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("查询员工详情")
RpcResponse<EntmicroStaffResponse> findStaffDetail(StaffRequestDTO staffRequestDTO);
/**
* 查询商户下面的跟进员工
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("查询商户下面的跟进员工")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "查询商户下面的跟进员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("查询商户下面的跟进员工")
RpcResponse<List<EntmicroStaffResponse>> findlistEntmicroStaff(EntmicroStaffRequest entmicroStaffRequest);
/**
* 查询商户下面的群主列表
*
* @param lordCustomerGroupRequest
* @return
*/
@ApiMethod("查询商户下面的群主列表")
@ApiParams({@ApiParam(name = "lordCustomerGroupRequest", notes = "查询商户下面的群主列表", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("查询商户下面的群主列表")
RpcResponse<List<EntmicroStaffResponse>> findLordGroup(LordCustomerGroupRequest lordCustomerGroupRequest);
/**
* 查询商户下的所有员工
*
* @param entmicroStaffRequest
* @return
*/
@ApiMethod("查询商户下的所有员工")
@ApiParams({@ApiParam(name = "entmicroStaffRequest", notes = "查询商户下的所有员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("员工信息")
RpcResponse<List<EntmicroStaffResponse>> findStaffByMerchantId(EntmicroStaffRequest entmicroStaffRequest);
/**
* 根据员工id查询员工详情
*
* @param staffIds 员工id
* @return
*/
@ApiMethod("根据员工id查询员工详情")
@ApiParams({@ApiParam(name = "staffIds", notes = "员工id集合", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
@ApiParam(name = "staffName", notes = "员工名称", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)}
)
@ApiResponse("员工信息")
RpcResponse<Map<Integer, EntmicroStaffResponse>> findStaffDetailByIds(List<Integer> staffIds, String staffName);
/**
* 根据员工userid查询员工详情
*
* @param userIds 员工id
* @param merchantId 商户号
* @return
*/
@ApiMethod("根据员工id查询员工详情")
@ApiParams({@ApiParam(name = "userIds", notes = "用户userid集合", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
@ApiParam(name = "merchantId", notes = "商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
})
@ApiResponse("员工信息")
RpcResponse<Map<String, EntmicroStaffResponse>> findStaffDetailByUserIds(List<String> userIds, Integer merchantId);
/**
* 业务类型查询员工
*
* @param businessTypeList
* @return
*/
@ApiMethod("根据业务类型查询员工查询员工")
@ApiParams({@ApiParam(name = "businessTypeList", notes = "业务类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true),
@ApiParam(name = "merchantId", notes = "商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)
})
@ApiResponse("员工信息")
RpcResponse<List<EntmicroStaffResponse>> getStaffByBusinessType(String businessTypeList, Integer merchantId);
/**
* 修改员工敏感信息
*
* @param updateStaffSensitiveInfoRequest
* @return
*/
@ApiMethod("修改员工敏感信息")
@ApiParams(@ApiParam(name = "updateStaffSensitiveInfoRequest", notes = "基础类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
@ApiResponse("修改员工敏感信息")
RpcResponse<Boolean> updateStaffSensitiveInfo(UpdateStaffSensitiveInfoRequest updateStaffSensitiveInfoRequest);
/**
* 查询门店下面已经开启的员工
*
* @param merchantStartStaffRequest
* @return
*/
@ApiMethod("查询门店下面已经开启的员工")
@ApiParams(@ApiParam(name = "merchantStartStaffRequest", notes = "基础类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
@ApiResponse("查询门店下面已经开启的员工")
RpcResponse<List<EntmicroStaffResponse>> findMerchantStartStaff(MerchantStartStaffRequest merchantStartStaffRequest);
/**
* 企微托管管理
*
* @param pagination 入参
* @return
*/
@ApiMethod("企微托管管理")
@ApiParams(@ApiParam(name = "pagination", notes = "入参", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
@ApiResponse("企微托管管理")
RpcResponse<RpcPagination<EntmicroStaffResponse>> wechatDepositList(RpcPagination<WechatDepositRequest> pagination);
/**
* 手动同步单个员工
*
* @param
* @return
*/
@ApiMethod("手动同步单个员工")
@ApiParams(@ApiParam(name = "商户号、员工userId", notes = "基础类型", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
@ApiResponse("手动同步单个员工")
RpcResponse<Boolean> syncSingleStaff(Integer merchantId, String userId);
/**
* 企微托管管理
*
* @param pagination 入参
* @return
*/
@ApiMethod("非SCRM企微托管管理")
@ApiParams(@ApiParam(name = "pagination", notes = "入参", dataType = ApiParam.DataTypeEnum.OBJECT, required = true))
@ApiResponse("非SCRM企微托管管理")
RpcResponse<RpcPagination<EntmicroStaffResponse>> wechatDepositNotAccessList(RpcPagination<WechatDepositRequest> pagination);
/**
* 查询园区店员工并且注册了企微
*
* @param autMerchantNo 授权商户号
* @param merchantNo 园区店商户号
* @return
*/
@ApiMethod("查询园区店员工并且注册了企微")
@ApiParams(@ApiParam(name = "autMerchantNo", notes = "入参", dataType = ApiParam.DataTypeEnum.INTEGER, required = true))
@ApiResponse("查询园区店员工并且注册了企微")
RpcResponse<List<EntmicroStaffResponse>> findResidentEntmicroStaff(@NotNull Integer autMerchantNo, @NotNull Integer merchantNo);
@ApiMethod("查询员工集合")
@ApiParams(@ApiParam(name = "requestDTOList", notes = "员工信息", dataType = ApiParam.DataTypeEnum.LIST, required = true))
@ApiResponse("查询员工集合")
RpcResponse<List<EntmicroStaffResponse>> findStaffList(List<StaffRequestDTO> requestDTOList);
@ApiMethod("上级商户查询员工集合")
@ApiParams(@ApiParam(name = "requestDTOList", notes = "员工信息", dataType = ApiParam.DataTypeEnum.LIST, required = true))
@ApiResponse("上级商户查询员工集合")
RpcResponse<List<EntmicroStaffResponse>> findStaffListByTopMerchantId(EntmicroStaffRequest request);
}