You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
// 定义当前类所在的包,表明该类属于系统用户模块下的请求数据传输对象包
|
|
package com.yf.exam.modules.sys.user.dto.request;
|
|
|
|
// 导入 Swagger 注解,用于生成 API 文档,标记类的描述信息
|
|
import io.swagger.annotations.ApiModel;
|
|
// 导入 Swagger 注解,用于生成 API 文档,标记类属性的描述信息
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
// 导入 Lombok 的 Data 注解,自动生成 getter、setter、toString 等方法
|
|
import lombok.Data;
|
|
|
|
// 导入 Serializable 接口,表明该类的对象可以被序列化
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* <p>
|
|
* 管理员登录请求类,用于封装管理员登录时所需的请求参数
|
|
* </p>
|
|
*
|
|
* @author 聪明笨狗
|
|
* @since 2020-04-13 16:57
|
|
*/
|
|
// 使用 Lombok 的 Data 注解,自动生成 getter、setter、equals、hashCode 和 toString 方法
|
|
@Data
|
|
// 为 Swagger 文档提供类的描述信息
|
|
@ApiModel(value="管理员登录请求类", description="管理员登录请求类")
|
|
public class SysUserLoginReqDTO implements Serializable {
|
|
|
|
// 序列化版本号,用于在反序列化时验证版本一致性
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
/**
|
|
* 管理员登录使用的用户名
|
|
* 在 API 文档中标记为必需项,表明该参数在请求时必须提供
|
|
*/
|
|
@ApiModelProperty(value = "用户名", required=true)
|
|
private String username;
|
|
|
|
/**
|
|
* 管理员登录使用的密码
|
|
* 在 API 文档中标记为必需项,表明该参数在请求时必须提供
|
|
*/
|
|
@ApiModelProperty(value = "密码", required=true)
|
|
private String password;
|
|
|
|
}
|