package com.yuchen.saas.manage.user.api.request.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhouhanwei
 * @create 2023/5/4 8:42
 */
@Data
public class FaceImageReqDTO {

    @ApiModelProperty(value = "人脸自拍照base64字符流")
    private String faceImageBase64;

    @ApiModelProperty(value = "人脸自拍照URL")
    @NotBlank(message = "请传入人脸自拍照图片")
    private String faceImageUrl;

    @ApiModelProperty(value = "用户手机号")
    @NotBlank(message = "用户手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "身份证正面照URL")
    @NotBlank(message = "身份证正面照URL不能为空")
    private String idCardFrontUrl;

    @ApiModelProperty(value = "身份证反面照URL")
    @NotBlank(message = "身份证反面照URL不能为空")
    private String idCardBackUrl;

    @ApiModelProperty(value = "用户认证id")
    @NotNull(message = "用户认证id为空")
    private Long userDetailId;

    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "姓名不能为空")
    private String name;
    @ApiModelProperty(value = "性别")
    private String sex;
    @ApiModelProperty(value = "民族")
    private String nation;
    @ApiModelProperty(value = "出生日期")
    private String birth;
    @ApiModelProperty(value = "地址")
    private String address;
    @ApiModelProperty(value = "身份证号")
    @NotBlank(message = "身份证号不能为空")
    private String idNum;
    @ApiModelProperty(value = "发证机关")
    private String authority;
    @ApiModelProperty(value = "证件有效期")
    @NotBlank(message = "证件有效期不能为空")
    private String validDate;
}
