BusinessCardRemote.java
7.91 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
package cn.com.glsx.entmicro.remote;
import cn.com.glsx.entmicro.model.request.businessCard.*;
import cn.com.glsx.entmicro.model.response.businessCard.*;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.annotation.ApiParam.DataTypeEnum;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import java.util.List;
import javax.validation.constraints.NotNull;
/**
* @author lichongyuan xiongzhengshun
* @Description:
* @date 2022/9/02
*/
@ApiService(value = "智能名片服务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "BusinessCardRemote", owner = "LiChongyuan")
public interface BusinessCardRemote {
@ApiMethod("访问记录上报")
@ApiParams({@ApiParam(name = "request", notes = "访问记录入参", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("访问记录上报")
RpcResponse<Boolean> saveCardRecord(SaveCardRecordRpcRequest request);
@ApiMethod("智能名片列表")
@ApiParams({@ApiParam(name = "request", notes = "列表查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("智能名片列表 ")
RpcResponse<RpcPagination<BusinessCardRpcResponse>> listBusinessCardPage(BusinessCardPageRequest request);
@ApiMethod("根据id获取名片详情")
@ApiParams({@ApiParam(name = "request", notes = "根据id获取名片详情", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
@ApiResponse("名片详情 ")
RpcResponse<BusinessCardRpcResponse> getBusinessCardDetail(Integer cardId);
@ApiMethod("新增智能名片")
@ApiParams({@ApiParam(name = "request", notes = "新增智能名片", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("名片id")
RpcResponse<Integer> saveBusinessCard(BusinessCardRpcRequest request);
@ApiMethod("更新智能名片")
@ApiParams({@ApiParam(name = "request", notes = "更新智能名片", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("名片id")
RpcResponse<Integer> updateBusinessCard(BusinessCardRpcRequest request);
@ApiMethod("删除名片")
@ApiParams({@ApiParam(name = "request", notes = "删除名片", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
@ApiResponse("名片id")
RpcResponse<Integer> deleteBusinessCard(Integer cardId);
@ApiMethod("访客记录分页列表")
@ApiParams({@ApiParam(name = "request", notes = "分页列表", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("名片id")
RpcResponse<RpcPagination<BusinessCardRecordRpcResponse>> getBusinessCardRecordPage(RpcPagination<CardRecordPageRpcRequest> rpcRequest);
@ApiMethod("智能名片活动申请")
@ApiParams({@ApiParam(name = "request", notes = "活动申请", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("申请结果")
RpcResponse<Boolean> activityApply(BusinessCardActivityApplyRpcRequest request);
@ApiMethod("分页查询活动申请记录")
@ApiParams({@ApiParam(name = "request", notes = "活动申请记录", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("活动列表")
RpcResponse<RpcPagination<BusinessCardActvityRpcResponse>> viewActivityApplyPage(RpcPagination<BusinessCardActivityPageRpcRequest> request);
@ApiMethod("跟进活动")
@ApiParams({@ApiParam(name = "request", notes = "跟进活动", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("跟进结果")
RpcResponse<Boolean> followActivity(BusinessCardActivityRpcRequest request);
@ApiMethod("活动页面访问记录")
@ApiParams({@ApiParam(name = "request", notes = "活动页面访问记录", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("记录列表")
RpcResponse<List<BusinessCardRecordRelationRpcResponse>> viewActivityAccessRecord(BusinessCardActivityRpcRequest request);
@ApiMethod("智能名片列表导出")
@ApiParams({@ApiParam(name = "request", notes = "智能名片列表导出", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("导出文件")
RpcResponse<String> exportBusinessCard(BusinessCardPageRequest request);
@ApiMethod("智能名片活动申请记录导出")
@ApiParams({@ApiParam(name = "request", notes = "智能名片活动申请记录导出", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("导出文件")
RpcResponse<String> exportActivityApply(RpcPagination<BusinessCardActivityPageRpcRequest> request);
@ApiMethod("智能名片访客记录导出")
@ApiParams({@ApiParam(name = "request", notes = "智能名片访客记录导出", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("导出文件")
RpcResponse<String> exportBusinessCardRecord(RpcPagination<CardRecordPageRpcRequest> rpcRequest);
@ApiMethod("分页查找活动记录列表")
@ApiParams({@ApiParam(name = "rpcRequest", notes = "分页查找活动记录列表", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("活动记录列表")
RpcResponse<RpcPagination<BusinessCardActivityRecordRpcResponse>> listActivityPage(ActivityRecordPageRpcRequest rpcRequest);
@ApiMethod("查询活动纪录集合")
@ApiParams({@ApiParam(name = "rpcRequest", notes = "查询活动纪录集合", dataType = ApiParam.DataTypeEnum.OBJECT)})
@ApiResponse("查询活动纪录集合")
RpcResponse<List<BusinessCardActivityRecordRpcResponse>> getActivityRecordList();
@ApiMethod("新增活动记录")
@ApiParams({@ApiParam(name = "rpcRequest", notes = "新增活动记录", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("成功与否")
RpcResponse<Boolean> addActivityRecord(BusinessCardActivityRecordRpcRequest rpcRequest);
@ApiMethod("编辑活动记录")
@ApiParams({@ApiParam(name = "rpcRequest", notes = "编辑活动记录", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("成功与否")
RpcResponse<Boolean> updateActivityRecord(ActivityRecordUpdateRpcRequest updateRpcRequest);
@ApiMethod("查看活动记录详情")
@ApiParams({@ApiParam(name = "rpcRequest", notes = "查看活动记录详情", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
@ApiResponse("活动记录详情")
RpcResponse<BusinessCardActivityRecordRpcResponse> findActivityRecordDetail(Integer id);
@ApiMethod("删除活动记录")
@ApiParams({@ApiParam(name = "id", notes = "id", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
@ApiResponse("成功与否")
RpcResponse<Boolean> deleteActivityRecord(ActivityRecordIdRpcRequest rpcRequest);
@ApiMethod("检查登录用户是否是滴加智慧云的员工")
@ApiParams({@ApiParam(name = "id", notes = "id", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
@ApiResponse("成功与否")
RpcResponse<Boolean> checkPhone(String phone);
@ApiMethod("是否显示门店助手、生意助手按钮")
@ApiParams({@ApiParam(name = "openId", notes = "openId", dataType = ApiParam.DataTypeEnum.STRING, required = true)})
@ApiResponse("true 显示")
RpcResponse<Boolean> checkCooperateByOpenId(String openId);
@ApiMethod("同步众筹活动数据")
@ApiParams({@ApiParam(name = "rpcRequest", notes = "rpcRequest", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
@ApiResponse("活动记录详情")
RpcResponse<BusinessCardActivityRecordRpcResponse> synActivity(SynActivityRecordRpcRequest rpcRequest);
@ApiMethod("根据手机号查询智能名片")
@ApiParams({@ApiParam(name = "phone", notes = "手机号", dataType = DataTypeEnum.STRING, required = true)})
@ApiResponse("智能名片信息")
RpcResponse<BusinessCardRpcResponse> findBusinessCardByPhone(@NotNull String phone);
}