package com.ruoyi.cai.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@Schema(description = "注册模型")
public class CaiRegisterUser {
    @Schema(description = "手机号登录名")
    @NotEmpty(message = "手机号不能为空")
    private String username;
    @Schema(description = "密码")
    @NotEmpty(message = "密码不能为空")
    private String password;
    @Schema(description = "密码确认")
    @NotEmpty(message = "密码确认不能为空")
    private String passwordCheck;
    @Schema(description = "验证码")
    @NotEmpty(message = "验证码不能为空")
    private String code;
    @Schema(description = "邀请人ID")
    private Long inviteId;
    @Schema(description = "性别")
    private Integer gender = 0;
}
