mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 00:57:13 +08:00 
			
		
		
		
	优化:优化校验注解提示信息的写法
This commit is contained in:
		| @@ -50,14 +50,14 @@ public class PageQuery extends SortQuery { | |||||||
|      * 页码 |      * 页码 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "页码") |     @Schema(description = "页码") | ||||||
|     @Min(value = 1, message = "页码最小值为 1") |     @Min(value = 1, message = "页码最小值为 {value}") | ||||||
|     private Integer page; |     private Integer page; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|      * 每页条数 |      * 每页条数 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "每页条数") |     @Schema(description = "每页条数") | ||||||
|     @Range(min = 1, max = 1000, message = "每页条数(取值范围 1-1000)") |     @Range(min = 1, max = 1000, message = "每页条数(取值范围 {min}-{max})") | ||||||
|     private Integer size; |     private Integer size; | ||||||
|  |  | ||||||
|     /** 默认页码:1 */ |     /** 默认页码:1 */ | ||||||
|   | |||||||
| @@ -73,7 +73,7 @@ public class DeptRequest extends BaseRequest { | |||||||
|      * 描述 |      * 描述 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "描述") |     @Schema(description = "描述") | ||||||
|     @Length(max = 200, message = "描述长度不能超过 200 个字符") |     @Length(max = 200, message = "描述长度不能超过 {max} 个字符") | ||||||
|     private String description; |     private String description; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
| @@ -82,7 +82,7 @@ public class RoleRequest extends BaseRequest { | |||||||
|      * 描述 |      * 描述 | ||||||
|      */ |      */ | ||||||
|     @Schema(description = "描述") |     @Schema(description = "描述") | ||||||
|     @Length(max = 200, message = "描述长度不能超过 200 个字符") |     @Length(max = 200, message = "描述长度不能超过 {max} 个字符") | ||||||
|     private String description; |     private String description; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
| @@ -46,7 +46,7 @@ public class UpdateBasicInfoRequest implements Serializable { | |||||||
|      */ |      */ | ||||||
|     @Schema(description = "昵称") |     @Schema(description = "昵称") | ||||||
|     @NotBlank(message = "昵称不能为空") |     @NotBlank(message = "昵称不能为空") | ||||||
|     @Length(max = 32, message = "昵称长度不能超过 32 个字符") |     @Length(max = 32, message = "昵称长度不能超过 {max} 个字符") | ||||||
|     private String nickname; |     private String nickname; | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user