BatchMessagingRemote.java 4.32 KB
package cn.com.glsx.entmicro.remote;

import cn.com.glsx.entmicro.dto.activityreport.ScrmActivityReportLogDTO;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.activityreport.ActivityReportLogSearchRpcRequest;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.batchmessaging.BatchMessagingMerchantRpcRequest;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.batchmessaging.BatchMessagingQueryRpcRequest;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.batchmessaging.BatchMessagingRpcRequest;
import cn.com.glsx.entmicro.model.request.wechatcloudcontrol.batchmessaging.BatchMessagingUserRpcRequest;
import cn.com.glsx.entmicro.model.response.wechatcloudcontrol.batchmessaging.BatchMessagingGroupResponse;
import cn.com.glsx.entmicro.model.response.wechatcloudcontrol.batchmessaging.BatchMessagingMerchantResponse;
import cn.com.glsx.entmicro.model.response.wechatcloudcontrol.batchmessaging.BatchMessagingRecordOfSendResponse;
import cn.com.glsx.entmicro.model.response.wechatcloudcontrol.batchmessaging.BatchMessagingRecordResponse;
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 java.util.List;

/**
 * @Description
 * @author chizw
 * @create 2022/9/19 16:14
 * @version ver.1.0.0
 */
@ApiService(value = "企微高级群发任务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "BatchMessagingRemote", owner = "chizw")
public interface BatchMessagingRemote {

    @ApiMethod("企微高级群发任务创建")
    @ApiResponse("创建结果")
    @ApiParams({@ApiParam(name = "BatchMessagingRpcRequest", notes = "企微高级群发任务创建参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<Boolean> createBatchMessagingTask(BatchMessagingRpcRequest rpcRequest);

    @ApiMethod("查看预计群发人数")
    @ApiResponse("群发人数")
    @ApiParams({@ApiParam(name = "BatchMessagingRpcRequest", notes = "企微高级群发查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<Integer> getEstimateCustomerCount(BatchMessagingRpcRequest rpcRequest);

    @ApiMethod("企微高级群发查询创建门店")
    @ApiResponse("门店列表")
    @ApiParams({@ApiParam(name = "BatchMessagingRpcRequest", notes = "企微高级群发查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<List<BatchMessagingMerchantResponse>> findBatchMessagingMerchantList(BatchMessagingMerchantRpcRequest rpcRequest);

    @ApiMethod("企微高级群发查询群发记录")
    @ApiResponse("群发记录")
    @ApiParams({@ApiParam(name = "BatchMessagingRpcRequest", notes = "企微高级群发查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<RpcPagination<BatchMessagingRecordResponse>> queryBatchMessaging(BatchMessagingQueryRpcRequest rpcRequest);

    @ApiMethod("企微高级群发查询群发发送记录")
    @ApiResponse("群发发送记录")
    @ApiParams({@ApiParam(name = "BatchMessagingRpcRequest", notes = "企微高级群发查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<RpcPagination<BatchMessagingRecordOfSendResponse>> queryBatchMessagingOfSend(BatchMessagingQueryRpcRequest rpcRequest);

    @ApiMethod("获取企微群列表")
    @ApiResponse("企微群列表")
    @ApiParams({@ApiParam(name = "BatchMessagingRpcRequest", notes = "获取企微群列表查询参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<List<BatchMessagingGroupResponse>> getBatchMessagingGroupList(BatchMessagingUserRpcRequest rpcRequest);

    @ApiMethod("群发记录停止发送")
    @ApiResponse("停止结果")
    @ApiParams({@ApiParam(name = "msgId", notes = "群发记录停止发送参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<Boolean> stopBatchMessagingSend(Integer msgId);

    @ApiMethod("查询喜报战报推送日志分页列表")
    @ApiResponse("日志分页列表")
    @ApiParams({@ApiParam(name = "request", notes = "请求参数", dataType = ApiParam.DataTypeEnum.OBJECT, required = true)})
    RpcResponse<RpcPagination<ScrmActivityReportLogDTO>> getActivityReportLogPage(ActivityReportLogSearchRpcRequest request);
}