refactor: 配置分页请求参数必填

This commit is contained in:
haoxr
2023-10-17 21:53:48 +08:00
parent 5d59c3b5f9
commit 1e2bcd188e

View File

@@ -14,9 +14,9 @@ import lombok.Data;
@Schema @Schema
public class BasePageQuery { public class BasePageQuery {
@Schema(description = "页码", example = "1") @Schema(description = "页码", required = true, example = "1")
private int pageNum = 1; private int pageNum = 1;
@Schema(description = "每页记录数", example = "10") @Schema(description = "每页记录数", required = true, example = "10")
private int pageSize = 10; private int pageSize = 10;
} }