feat: 新增账号密码在swagger有默认值
This commit is contained in:
parent
40c7df817b
commit
3b6496773d
@ -17,11 +17,11 @@ import java.io.Serializable;
|
|||||||
public class LoginParam implements Serializable {
|
public class LoginParam implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@ApiModelProperty(value = "用户名", required = true)
|
@ApiModelProperty(value = "用户名", required = true, example = "admin")
|
||||||
@NotBlank(message="用户名不能为空")
|
@NotBlank(message="用户名不能为空")
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
@ApiModelProperty(value = "密码" , required = true)
|
@ApiModelProperty(value = "密码" , required = true, example = "admin")
|
||||||
@NotBlank(message="密码不能为空")
|
@NotBlank(message="密码不能为空")
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user