Authored by liangyi.chen@yoho.cn

新增钱包信息查询接口

package com.yohoufo.user.controller.wallet;
import com.yoho.core.rest.client.ServiceCaller;
import com.yoho.service.model.request.UserWalletDetailReqBO;
import com.yoho.tools.common.beans.ApiResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;
@RestController
@RequestMapping("/WalletInfoRest")
public class WalletInfoController {
private Logger logger = LoggerFactory.getLogger(WalletInfoController.class);
@Resource
private ServiceCaller serviceCaller;
/**
* 钱包余额信息查询
*/
@RequestMapping("method = ufo.wallet.queryUserWalletInfo")
public ApiResponse queryUserWalletInfo( @RequestParam Integer uid){
logger.info("enter ufo.wallet.queryUserWalletInfo with param {}", uid);
Map<String, Object> req = new HashMap<>();
req.put("uid",uid);
return serviceCaller.getcall("wallet.queryUserWalletInfo", req, ApiResponse.class);
}
/**
* 钱包交易明细信息查询
*/
@RequestMapping("method = ufo.wallet.queryWalletDetailList")
public ApiResponse queryWalletDetailList(UserWalletDetailReqBO walletDetailReqBO){
logger.info("enter queryWalletDetailList with param {}", walletDetailReqBO);
return serviceCaller.call("wallet.queryWalletDetailList", walletDetailReqBO, ApiResponse.class);
}
}
... ...