package com.rj.pojo.sys;

import com.fasterxml.jackson.annotation.JsonAlias;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 登录请求DTO
 *
 * @author 系统生成
 * @since 2025-08-07
 */
@Data
@Schema(description = "登录请求")
public class LoginRequest {

    @Schema(description = "用户名（支持 userName / username / loginAccount）", required = true, example = "admin")
    @JsonAlias({"username", "loginAccount"})
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @Schema(description = "密码", required = true, example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;

}
