mirror of
				https://github.com/continew-org/continew-admin.git
				synced 2025-10-31 10:57:13 +08:00 
			
		
		
		
	docs: 完善代码生成相关接口文档信息
This commit is contained in:
		| @@ -55,14 +55,14 @@ public class PageQuery extends SortQuery { | ||||
|     /** | ||||
|      * 页码 | ||||
|      */ | ||||
|     @Schema(description = "页码") | ||||
|     @Schema(description = "页码", example = "1") | ||||
|     @Min(value = 1, message = "页码最小值为 {value}") | ||||
|     private Integer page = DEFAULT_PAGE; | ||||
|  | ||||
|     /** | ||||
|      * 每页条数 | ||||
|      */ | ||||
|     @Schema(description = "每页条数") | ||||
|     @Schema(description = "每页条数", example = "10") | ||||
|     @Range(min = 1, max = 1000, message = "每页条数(取值范围 {min}-{max})") | ||||
|     private Integer size = DEFAULT_SIZE; | ||||
|  | ||||
|   | ||||
| @@ -52,7 +52,7 @@ public class PageDataVO<V> implements Serializable { | ||||
|     /** | ||||
|      * 总记录数 | ||||
|      */ | ||||
|     @Schema(description = "总记录数") | ||||
|     @Schema(description = "总记录数", example = "10") | ||||
|     private int total; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -40,15 +40,15 @@ public class R<V> implements Serializable { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 是否成功 */ | ||||
|     @Schema(description = "是否成功") | ||||
|     @Schema(description = "是否成功", example = "true") | ||||
|     private boolean success; | ||||
|  | ||||
|     /** 状态码 */ | ||||
|     @Schema(description = "状态码") | ||||
|     @Schema(description = "状态码", example = "200") | ||||
|     private int code; | ||||
|  | ||||
|     /** 状态信息 */ | ||||
|     @Schema(description = "状态信息") | ||||
|     @Schema(description = "状态信息", example = "操作成功") | ||||
|     private String msg; | ||||
|  | ||||
|     /** 返回数据 */ | ||||
| @@ -56,7 +56,7 @@ public class R<V> implements Serializable { | ||||
|     private V data; | ||||
|  | ||||
|     /** 时间戳 */ | ||||
|     @Schema(description = "时间戳") | ||||
|     @Schema(description = "时间戳", example = "1691453288000") | ||||
|     private long timestamp = System.currentTimeMillis(); | ||||
|  | ||||
|     /** 成功状态码 */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user