New file |
| | |
| | | package com.panzhihua.common.model.dtos.community; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | 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 com.panzhihua.common.model.helper.sensitive.SensitiveStrategy; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @title: GetIdentityEidTokenDTO |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 获取身份认证人脸核验token参数 |
| | | * @author: hans |
| | | * @date: 2021/09/13 11:07 |
| | | */ |
| | | @Data |
| | | @ApiModel("获取身份认证人脸核验token参数") |
| | | @EncryptDecryptClass |
| | | public class GetIdentityEidTokenDTO { |
| | | |
| | | @ApiModelProperty(value = "认证类型(1.高龄认证 2.养老认证)", required = true, allowableValues = "1,2", example = "1") |
| | | @NotNull(message = "认证类型不能为空") |
| | | private Integer authType; |
| | | |
| | | @ApiModelProperty(value = "姓名", required = true, example = "张三") |
| | | @Sensitive(strategy = SensitiveStrategy.USERNAME) |
| | | @NotBlank(message = "姓名不能为空") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "身份证号", required = true, example = "511321199503241233") |
| | | @Sensitive(strategy = SensitiveStrategy.ID_CARD) |
| | | @EncryptDecryptField |
| | | @NotBlank(message = "身份证号码不能为空") |
| | | @Size(min = 18, max = 18, message = "请输入18位有效身份证号") |
| | | private String idCard; |
| | | } |