MerchantRemote.java 1.3 KB
package cn.com.glsx.entmicro.remote;

import cn.com.glsx.entmicro.model.response.DictDataResponse;
import cn.com.glsx.entmicro.model.response.MerchantResponse;
import cn.com.glsx.framework.core.annotation.*;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;

import java.util.List;

/**
 * @author zhouhb
 * @Description:
 * @date 2022/3/05 10:00
 */
@ApiService(value = "账户中心服务", version = "1.0.0", protocol = ApiService.ProtocolEnum.dubbo, type = ApiService.ApiTypeEnum.DUBBO, alias = "MerchantRemote", owner = "zhouhb")
public interface MerchantRemote {

    @ApiMethod("查询字典")
    @ApiParam(name = "dictType", notes = "字典值", dataType = ApiParam.DataTypeEnum.STRING, required = true)
    @ApiResponse("查询字典")
    RpcResponse<List<DictDataResponse>> findAllByDictType(String dictType);

    @ApiMethod("查询商户")
    @ApiParam(name = "merchantno", notes = "商户号", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
    @ApiResponse("查询商户")
    RpcResponse<MerchantResponse> findMerchantByMerchantNo(Integer merchantno);

    @ApiMethod("查询appId")
    @ApiParam(name = "merchantId", notes = "商户号", dataType = ApiParam.DataTypeEnum.INTEGER, required = true)
    @ApiResponse("appId")
    RpcResponse<String> findAppIdByMerchantNo(Integer merchantId);
}