| | |
| | | package com.ruoyi.auth.form; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import javax.validation.constraints.NotBlank; |
| | | |
| | | /** |
| | | * 用户登录对象 |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @ApiModel(value = "登录对象", description = "用户登录对象") |
| | | public class LoginBody |
| | | { |
| | | /** |
| | | * 用户名 |
| | | */ |
| | | @ApiModelProperty(value = "用户名", required = true) |
| | | @NotBlank(message = "用户名不能为空") |
| | | private String username; |
| | | |
| | | /** |
| | | * 用户密码 |
| | | */ |
| | | @ApiModelProperty(value = "用户密码", required = true) |
| | | @NotBlank(message = "用户密码不能为空") |
| | | private String password; |
| | | |
| | | public String getUsername() |