package com.sckw.auth.model.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestHeader;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author czh
 * @desc 登录接口入参
 * @date 2023/6/12
 */
@Data
public class LoginReqVo implements Serializable {

    @Serial
    private static final long serialVersionUID = -6021472117198868910L;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    @Schema(description = "账号")
    private String account;

    /**
     * 设备类型
     */
//    @NotBlank(message = "设备类型不能为空")
    @Schema(description = "设备类型")
    private String clientType;

    /**
     * 系统类型
     */
//    @NotNull(message = "系统类型不能为空")
    @Schema(description = "系统类型")
    private Integer systemType;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 验证码
     */
    @Schema(description = "验证码")
    private String captcha;

    /**
     * 是否记住密码
     */
    @Schema(description = "是否记住密码")
    private Boolean rememberMe = false;

    /**
     * 设备唯一标识（用于多设备记住密码）
     */
    @Schema(description = "设备唯一标识")
    private String deviceId;

}
