AccountRpc.java
1.5 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
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);
}