| | |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptClass; |
| | | import com.panzhihua.common.model.helper.encrypt.EncryptDecryptField; |
| | | import com.panzhihua.common.model.helper.sensitive.Sensitive; |
| | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @title: AddIdentityAuthDTO |
| | |
| | | public class AddIdentityAuthDTO { |
| | | |
| | | @ApiModelProperty(value = "认证类型(1.高龄认证 2.养老认证)", required = true, allowableValues = "1,2", example = "1") |
| | | @NotNull |
| | | @NotNull(message = "认证类型不能为空") |
| | | private Integer authType; |
| | | |
| | | @ApiModelProperty(value = "姓名", required = true, example = "张三") |
| | | @Sensitive(strategy = SensitiveStrategy.USERNAME) |
| | | @NotBlank |
| | | @NotBlank(message = "姓名不能为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "身份证号", required = true, example = "511321199503241233") |
| | | @Sensitive(strategy = SensitiveStrategy.ID_CARD) |
| | | @EncryptDecryptField |
| | | @NotBlank |
| | | @Size(min = 18, max = 18) |
| | | @NotBlank(message = "身份证号码不能为空") |
| | | @Size(min = 18, max = 18, message = "请输入18位有效身份证号") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty(value = "现居住地址", required = true, example = "双流小区") |
| | | @NotBlank |
| | | @NotBlank(message = "居住地址不能为空") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "认证视频url,视频认证时需传入", example = "http://test.video.html") |
| | |
| | | @ApiModelProperty(value = "人脸核身结果数据", hidden = true) |
| | | private String verificationResult; |
| | | |
| | | @ApiModelProperty(value = "身份认证方式 1.视频认证 2.人脸认证", hidden = true) |
| | | private Integer type = 1; |
| | | @ApiModelProperty(value = "身份认证方式 1.视频认证 2.人脸认证 3.线下认证", hidden = true) |
| | | private Integer authMethod = 1; |
| | | |
| | | @ApiModelProperty(value = "社区id", hidden = true) |
| | | private Long communityId; |
| | | |
| | | @ApiModelProperty("认证时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Date authTime; |
| | | |
| | | @ApiModelProperty("认证期数") |
| | | private String authPeriod; |
| | | |
| | | private String areaCode; |
| | | } |