package com.ruoyi.xq.dto.app.auth;

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "登陆入参模型")
public class LoginUser {
    @Schema(description = "登陆类型 1-手机验证码登陆 2-密码登陆")
    @NotNull(message = "1-手机验证码登陆 2-密码登陆")
    private Integer loginType = 1;
    @Schema(description = "登陆账号(手机号码)")
    @NotEmpty(message = "手机号不能为空")
    private String username;
    @Schema(description = "密码（密码登陆专用）")
    private String password;
    @Schema(description = "登陆验证码（手机验证码登陆专用）")
    private String code;
    @Schema(description = "邀请码（手机验证码登陆的时候，如果用户未注册会自动注册，可以输入邀请码）")
    private String inviteCode;
}
