AccountRpc.java 1.5 KB
package com.diligrp.etrade.rpc;

import cn.hutool.json.JSONObject;
import com.diligrp.etrade.core.domain.Message;
import com.diligrp.etrade.rpc.dto.request.UserAccountCardQuery;
import com.diligrp.etrade.rpc.dto.request.AccountQueryDto;
import com.diligrp.etrade.rpc.dto.request.UserAccountSingleQueryDto;
import com.diligrp.etrade.rpc.dto.response.BaseOutput;
import com.diligrp.etrade.rpc.dto.response.CustomerBalanceResponseDto;
import com.diligrp.etrade.rpc.dto.response.UserAccountCardResponseDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(name = "pay-service", contextId = "accountRpc")
public interface AccountRpc {

    @PostMapping(value = "api/account/getAccountFundByCustomerIdV2.action")
    JSONObject getAccountFundByCustomerIdV2(@RequestBody AccountQueryDto queryDto);

    /**
     * 模糊查询
     */
    @RequestMapping(value = "/api/account/getAllListV2", method = RequestMethod.POST)
    Message<List<UserAccountCardResponseDto>> getAllListV2(@RequestBody UserAccountCardQuery param);

    /**
     * 查询单个
     *
     * @author miaoguoxin
     * @date 2020/7/28
     */
    @PostMapping(value = "/api/account/getSingle")
    Message<UserAccountCardResponseDto> findSingle(UserAccountSingleQueryDto cardQuery);
}