docs: 修改接口文档

This commit is contained in:
xiongxiaoyang 2022-06-30 19:11:02 +08:00
parent 76677ea8b8
commit 6d2fa74237
2 changed files with 6 additions and 5 deletions

View File

@ -13,6 +13,7 @@ import lombok.Data;
@Data @Data
public class AuthorRegisterReqDto { public class AuthorRegisterReqDto {
@Schema(hidden = true)
private Long userId; private Long userId;
/** /**

View File

@ -14,13 +14,13 @@ import lombok.Data;
@Data @Data
public class UserLoginReqDto { public class UserLoginReqDto {
@Schema(description = "手机号", required = true) @Schema(description = "手机号", required = true, example = "18888888888")
@NotBlank(message="手机号不能为空!") @NotBlank(message = "手机号不能为空!")
@Pattern(regexp="^1[3|4|5|6|7|8|9][0-9]{9}$",message="手机号格式不正确!") @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]{9}$", message = "手机号格式不正确!")
private String username; private String username;
@Schema(description = "密码", required = true) @Schema(description = "密码", required = true, example = "123456")
@NotBlank(message="密码不能为空!") @NotBlank(message = "密码不能为空!")
private String password; private String password;
} }