ScrmDataCubeJoinRestCloudRemote.java
7.97 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
package cn.com.glsx.entmicro.remote;
import cn.com.glsx.entmicro.model.request.DataCubeBaseRpcRequest;
import cn.com.glsx.entmicro.model.request.DataCubeFileUploadRpcRequest;
import cn.com.glsx.entmicro.model.request.restcloud.*;
import cn.com.glsx.entmicro.model.response.DataCubeMerchantConfigResponse;
import cn.com.glsx.entmicro.model.response.DataCubeUploadLogResponse;
import cn.com.glsx.entmicro.model.response.DataCubeUploadResult;
import cn.com.glsx.entmicro.model.response.restcloud.DataCubeTemplateConfigResponse;
import cn.com.glsx.entmicro.model.response.restcloud.DataPoolResponse;
import cn.com.glsx.entmicro.model.response.restcloud.TableConfigInfoResponse;
import cn.com.glsx.entmicro.model.response.restcloud.TemplateConfigResponse;
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 com.github.pagehelper.Page;
import java.util.List;
/**
* @author chizw
* @Description 数据魔方对接RestCloud
* @create 2022/4/23 17:07
*/
@ApiService(value = "数据魔方服务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "ScrmDataCubeJoinRestCloudRemote", owner = "chizw")
public interface ScrmDataCubeJoinRestCloudRemote {
@ApiMethod("数据魔方文件上传")
@ApiResponse("上传结果")
@ApiParams({@ApiParam(name = "DataCubeFileUploadRpcRequest", notes = "客户数据导入文件url", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<DataCubeUploadResult> uploadDataCubeFiles(DataCubeFileUploadRpcRequest dataCubeFileUploadRequest);
@ApiMethod("查询数据魔方商户模板配置")
@ApiResponse("商户配置")
@ApiParams({@ApiParam(name = "merchantId", notes = "商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<List<DataCubeMerchantConfigResponse>> queryDateCubeTemplate(Integer merchantId);
@ApiMethod("分页查询数据魔方日志列表")
@ApiResponse("日志列表")
@ApiParams({@ApiParam(name = "request", notes = "分页条件", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<DataCubeUploadLogResponse>> queryDataCubeUploadLogByPage(DataCubeBaseRpcRequest request);
@ApiMethod("查询文件RestCloud处理异常数据")
@ApiResponse("异常数据url")
@ApiParams({@ApiParam(name = "request", notes = "文件信息", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<String> findRestCloudFailedData(DataCubeBaseRpcRequest request);
@ApiMethod("PC端数据魔方处理完成提醒")
@ApiResponse("批次列表")
@ApiParams({@ApiParam(name = "request", notes = "商户号", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<List<String>> noticeReminderToPC(Integer merchantId);
@ApiMethod("查询商户分页列表")
@ApiResponse("查询商户分页列表")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<TemplateConfigResponse>> findMerchantConfigList(RpcPagination<DataCubeMerchantRequest> request);
@ApiMethod("查询字段池列表")
@ApiResponse("查询字段池列表")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<DataPoolResponse>> findPoolPagelList(RpcPagination<DataPoolSearchRequest> request);
@ApiMethod("查询商户详情")
@ApiResponse("查询商户详情")
@ApiParams({@ApiParam(name = "id", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<TemplateConfigResponse> findByTemplateId(Integer id);
@ApiMethod("查询字段池详情")
@ApiResponse("查询字段池详情")
@ApiParams({@ApiParam(name = "id", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<DataPoolResponse> findPoolDetail(Integer id);
@ApiMethod("保存字段池")
@ApiResponse("保存字段池")
@ApiParams({@ApiParam(name = "dataCubeFieldPoolDORequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> savePool(DataCubeFieldPoolDORequest dataCubeFieldPoolDORequest);
@ApiMethod("更新字段池")
@ApiResponse("更新字段池")
@ApiParams({@ApiParam(name = "dataCubeFieldPoolDORequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> updatePool(DataCubeFieldPoolDORequest dataCubeFieldPoolDORequest);
@ApiMethod("查询字段池")
@ApiResponse("查询字段池")
RpcResponse<List<DataPoolResponse>> findPoolList();
@ApiMethod("新增商户模板")
@ApiResponse("新增商户模板")
@ApiParams({@ApiParam(name = "templateConfigRequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> saveMerchantConfig(TemplateConfigRequest templateConfigRequest);
@ApiMethod("更新商户模板")
@ApiResponse("更新商户模板")
@ApiParams({@ApiParam(name = "templateConfigRequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> updateMerchantConfig(TemplateConfigRequest templateConfigRequest);
@ApiMethod("查询模板列表")
@ApiResponse("查询模板列表")
RpcResponse<List<DataCubeTemplateConfigResponse>> findTemplateList();
@ApiMethod("查询模板列表分页")
@ApiResponse("查询模板列表分页")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<DataCubeTemplateConfigResponse>> findTemplatePageList(RpcPagination<DataCubeTemplateConfigSearchRequest> request);
@ApiMethod("新增模板")
@ApiResponse("新增模板")
@ApiParams({@ApiParam(name = "templateConfigRequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> saveTemplate(DataCubeTemplateConfigRequest templateConfigRequest);
@ApiMethod("更新模板")
@ApiResponse("更新模板")
@ApiParams({@ApiParam(name = "templateConfigRequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> updateTemplate(DataCubeTemplateConfigRequest templateConfigRequest);
@ApiMethod("查询模板详情")
@ApiResponse("查询模板详情")
@ApiParams({@ApiParam(name = "id", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<DataCubeTemplateConfigResponse> findTemplateDetail(Integer id);
@ApiMethod("查询商户字段列表分页")
@ApiResponse("查询商户字段列表分页")
@ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
RpcResponse<RpcPagination<TableConfigInfoResponse>> findRelationPageList(RpcPagination<DataCubeTemplateConfigSearchRequest> request);
@ApiMethod("新增字段映射")
@ApiResponse("新增字段映射")
@ApiParams({@ApiParam(name = "templateConfigRequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> saveRelation(TableConfigInfoResquest templateConfigRequest);
@ApiMethod("更新字段映射")
@ApiResponse("更新字段映射")
@ApiParams({@ApiParam(name = "templateConfigRequest", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<Boolean> updateRelation(TableConfigInfoResquest templateConfigRequest);
@ApiMethod("查询字段映射详情")
@ApiResponse("查询字段映射详情")
@ApiParams({@ApiParam(name = "id", notes = "请求参数", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)})
RpcResponse<TableConfigInfoResponse> findRelationDetail(Integer id);
}