package com.ruoyi.common.core.domain.model;

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

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

/**
 * 用户注册对象
 *
 * @author ruoyi
 */
@Data
@ApiModel(description = "注册信息")
public class RegisterAiUserBody extends LoginAiUserBody {


    /**
     * 用户名
     */
    @ApiModelProperty(name = "用户名")
    @NotBlank(message = "NotBlank.user.username")
    private String username;

    @NotBlank(message = "NotBlank.user.email")
    @ApiModelProperty(name = "邮箱")
    private String email;


    @ApiModelProperty(name = "用户昵称")
    private String nickname;

    @ApiModelProperty(name = "性别：1-男，2-女")
    private Integer gender;

    @ApiModelProperty(name = "头像")
    private String avatar;

    @ApiModelProperty(name = "电话号码")
    private String phone;

    @NotBlank(message = "NotBlank.user.password")
    @ApiModelProperty(name = "密码")
    private String password;

    @ApiModelProperty(name = "生日")
    private Date birthday;

    @ApiModelProperty(name = "上级邀请码")
    private String invitationCode;

    @NotBlank(message = "NotBlank.user.emailCode")
    @ApiModelProperty(name = "邮箱验证码")
    private String code;

    @ApiModelProperty(name = "数据来源")
    private String source;

}
