docs: 完善代码生成相关接口文档信息

This commit is contained in:
2023-08-12 23:33:58 +08:00
parent 72399d9226
commit 9def265af6
8 changed files with 48 additions and 37 deletions

View File

@@ -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;

View File

@@ -52,7 +52,7 @@ public class PageDataVO<V> implements Serializable {
/**
* 总记录数
*/
@Schema(description = "总记录数")
@Schema(description = "总记录数", example = "10")
private int total;
/**

View File

@@ -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();
/** 成功状态码 */