实名认证相关

main
rong.liu 12 months ago
parent f3a746481c
commit dee79be6ef
  1. 6
      users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java
  2. 14
      users/src/main/java/com/huoran/users/entity/UserAuthenticationInformation.java

@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.Date;
import java.util.Optional;
@Api(value = "小程序-实名认证", tags = "小程序-实名认证")
@ -87,6 +88,11 @@ public class AliRealNameAuthenticationController {
throw new RuntimeException(info.getRespMessage());
}
//设置用户当前认证时间
userAuthenticationInformation.setRealNameAuthenticationTime(new Date());
userAuthenticationInformation.setProvince(info.getProvince());
userAuthenticationInformation.setCity(info.getCity());
userAuthenticationInformation.setCounty(info.getCounty());
boolean addState = service.save(userAuthenticationInformation);
return addState ? R.ok() : R.error("认证失败");

@ -42,10 +42,10 @@ public class UserAuthenticationInformation implements Serializable {
private String idCardNo;
@ApiModelProperty(value = "生日")
private Date birthday;
private String birthday;
@ApiModelProperty(value = "年龄")
private Integer age;
/*@ApiModelProperty(value = "年龄")
private Integer age;*/
@ApiModelProperty(value = "性别")
private String sex;
@ -65,11 +65,11 @@ public class UserAuthenticationInformation implements Serializable {
@ApiModelProperty(value = "民族")
private String nationality;
@ApiModelProperty(value = "有效期起始时间")
private Date startDate;
@ApiModelProperty(value = "身份证有效期起始时间")
private String startDate;
@ApiModelProperty(value = "有效期结束时间")
private Date endDate;
@ApiModelProperty(value = "身份证有效期结束时间")
private String endDate;
@ApiModelProperty(value = "签发机关")
private String issue;

Loading…
Cancel
Save