package com.fs.lotus.param;

import com.baidu.dev2.thirdparty.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class InitUserDto {
    @NotBlank(message = "用户姓名不能为空")
    private String userName;
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @NotBlank(message = "身份证号不能为空")
    private String idCard;

    @NotBlank(message = "出生日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @NotBlank(message = "性别不能为空")
    private Integer sex;

    @NotBlank(message = "类型不能为空")
    private String entranceType;

    private String activateBizCode;

    private String openId;
}
