ScrmDataCubeJoinRestCloudRemote.java 7.97 KB
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);

}