SyncRemote.java
4.99 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
package cn.com.glsx.entmicro.remote;
import cn.com.glsx.entmicro.model.request.SyncCustomerBaseRpcRequest;
import cn.com.glsx.entmicro.model.request.SyncCustomerRpcRequest;
import cn.com.glsx.entmicro.model.request.SyncDepartmentRpcRequest;
import cn.com.glsx.entmicro.model.request.SyncStaffRpcRequest;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
/**
* @author Lichongyuan
* @Description: 同步服务
* @date 2021/10/19 16:08
*/
@ApiService(value = "同步数据服务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "SyncRemote", owner = "lichongyuan")
public interface SyncRemote {
/**
* 同步部门
*
* @param sycDepartmentRpcRequest
* @return
*/
@ApiMethod("同步部门")
@ApiParams({@ApiParam(name = "sycDepartmentRequest", notes = "同步部门", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步部门")
RpcResponse<Boolean> sycDepartment(SyncDepartmentRpcRequest sycDepartmentRpcRequest);
/**
* 同步员工
*
* @param sycStaffRpcRequest
* @return
*/
@ApiMethod("同步员工")
@ApiParams({@ApiParam(name = "sycStaffRequest", notes = "同步员工", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步员工")
RpcResponse<Boolean> sycStaff(SyncStaffRpcRequest sycStaffRpcRequest);
/**
* 同步客户
*
* @param syncCustomerRpcRequest
* @return
*/
@ApiMethod("同步客户")
@ApiParams({@ApiParam(name = "sycCustomerRequest", notes = "同步客户", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步客户")
RpcResponse<Boolean> sycCustomer(SyncCustomerRpcRequest syncCustomerRpcRequest);
/**
* 同步客户群
*
* @param syncCustomerBaseRpcRequest
* @return
*/
@ApiMethod("同步客户群")
@ApiParams({@ApiParam(name = "sycCustomerBaseRequest", notes = "同步客户群", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步客户群")
RpcResponse<Boolean> sycCustomerBase(SyncCustomerBaseRpcRequest syncCustomerBaseRpcRequest);
/**
* 同步标签
*
* @param syncCustomerBaseRpcRequest
* @return
*/
@ApiMethod("同步客户群")
@ApiParams({@ApiParam(name = "sycCustomerBaseRequest", notes = "同步客户群", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步客户群")
RpcResponse<Boolean> syncTag(SyncCustomerBaseRpcRequest syncCustomerBaseRpcRequest);
/**
* 增量同步员工客户客户群数据(广汇)
*
* @param departmentId 企微部门id
* @return merchantId 授权商户号
* @return relevanceMerchant 关联的商户号
*/
@ApiMethod("增量同步员工客户客户群数据(广汇)")
@ApiParams({@ApiParam(name = "sycCustomerBaseRequest", notes = "同步客户群", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("增量同步员工客户客户群数据(广汇)")
RpcResponse<Boolean> syncStaffCust(Integer relevanceMerchant,Integer departmentId, Integer merchantId);
/**
* 按商户提取备注内容
*
*/
@ApiMethod("按商户提取备注内容")
@ApiParams({@ApiParam(name = "syncCustomerRemarkInfo", notes = "按商户提取备注内容", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("按商户提取备注内容")
RpcResponse<Boolean> syncCustomerRemarkInfo(SyncCustomerRpcRequest syncCustomerRpcRequest);
/**
* 维格表同步指定门店企微客户
*/
@ApiMethod("维格表同步指定门店企微客户")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("请求结果")
RpcResponse<Boolean> syncCustomer2Vika(SyncDepartmentRpcRequest request);
/**
* 根据标签同步指定门店企微客户至维格表
*/
@ApiMethod("根据标签同步指定门店企微客户至维格表")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("请求结果")
RpcResponse<Boolean> syncCustomer2VikaByTag(SyncDepartmentRpcRequest request);
/**
* 同步客户企微类型标签
*/
@ApiMethod("同步客户企微类型标签")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = false)})
@ApiResponse("请求结果")
RpcResponse<Boolean> syncCustomerTypeTagHandle(SyncCustomerRpcRequest request);
@ApiMethod("同步客户备注数据到cdp")
@ApiParams({
@ApiParam(name = "merchantIdList", notes = "同步商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("同步结果")
RpcResponse<Boolean> syncCustomerRemarkToCdp(SyncCustomerRpcRequest request);
}