Authored by qinchao

实名认证请求接口for platform

... ... @@ -3,6 +3,7 @@ package com.yohoufo.order.service.impl;
import java.math.BigDecimal;
import java.util.Date;
import com.yohobuy.ufo.model.user.resp.AuthorizeResultRespVO;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
... ... @@ -59,7 +60,6 @@ import com.yohoufo.order.service.pay.alipay.AlipayOuyinService;
import com.yohoufo.order.service.pay.weixin.WeixinPayUFOAppService;
import com.yohoufo.order.service.support.codegenerator.OrderCodeGenerator;
import com.yohoufo.order.service.support.codegenerator.bean.CodeMeta;
import com.yohoufo.user.responseVO.AuthorizeResultRespVO;
@Service
... ...
... ... @@ -3,22 +3,17 @@ package com.yohoufo.user.controller.passport;
import com.yoho.core.rest.annotation.ServiceDesc;
import com.yoho.tools.common.beans.ApiResponse;
import com.yohobuy.ufo.model.user.req.AuthorizeInfoReq;
import com.yohoufo.common.annotation.IgnoreSession;
import com.yohoufo.common.annotation.IgnoreSignature;
import com.yohoufo.common.exception.GatewayException;
import com.yohoufo.dal.user.model.UserAuthorizeInfo;
import com.yohoufo.user.helper.HideDataUtil;
import com.yohoufo.user.requestVO.RealNameAuthorizeReqVO;
import com.yohoufo.user.responseVO.AuthorizeResultRespVO;
import com.yohoufo.user.service.IRealNameAuthorizeService;
import com.yohoufo.user.service.risk.GraphVerifyService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
... ... @@ -45,10 +40,13 @@ public class RealNameAuthorize4PlatformController {
@RequestMapping(value="/aliPayAccountQuery")
@IgnoreSession
@IgnoreSignature
public ApiResponse aliPayAccountQuery(@RequestBody Integer uid) {
logger.info("enter RealNameAuthorizeController aliPayAccountQuery authorize info param uid is {}", uid);
public ApiResponse aliPayAccountQuery(@RequestBody AuthorizeInfoReq req) {
logger.info("enter RealNameAuthorize4PlatformController aliPayAccountQuery authorize info param req is {}", req);
//获取
UserAuthorizeInfo info= realNameAuthorizeService.getValidAuthorizeInfo(uid);
UserAuthorizeInfo info=null;
if(req.getUid()!=null){
info= realNameAuthorizeService.getValidAuthorizeInfo(req.getUid());
}
return new ApiResponse.ApiResponseBuilder().code(200)
.data(info).message("").build();
}
... ...
... ... @@ -2,11 +2,11 @@ package com.yohoufo.user.controller.passport;
import com.yoho.tools.common.beans.ApiResponse;
import com.yohobuy.ufo.model.user.resp.AuthorizeResultRespVO;
import com.yohoufo.common.exception.GatewayException;
import com.yohoufo.dal.user.model.UserAuthorizeInfo;
import com.yohoufo.user.helper.HideDataUtil;
import com.yohoufo.user.requestVO.RealNameAuthorizeReqVO;
import com.yohoufo.user.responseVO.AuthorizeResultRespVO;
import com.yohoufo.user.service.IRealNameAuthorizeService;
import com.yohoufo.user.service.risk.GraphVerifyService;
import org.apache.commons.lang3.StringUtils;
... ...
package com.yohoufo.user.responseVO;
import com.yoho.service.model.BaseBO;
import lombok.Data;
/**
* 实名认证结果查询
*/
@Data
public class AuthorizeResultRespVO extends BaseBO {
private int uid;
//是否已经绑卡
private boolean authorizeFlag;
//支付宝账号
private String alipayAccount;
private String alipayMaskAccount;
//认证的姓名
private String certName;
//创建时间
private long createTime;
}