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
src/main/java/io/github/xxyopen/novel/dto/req

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

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