mirror of
https://github.com/zongzibinbin/MallChat.git
synced 2026-03-13 21:53:41 +08:00
fix:
分页限制单页数量
This commit is contained in:
@@ -9,6 +9,7 @@ import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
@@ -22,6 +23,7 @@ import java.util.Objects;
|
||||
public class CursorPageBaseReq {
|
||||
|
||||
@ApiModelProperty("页面大小")
|
||||
@Max(50)
|
||||
private Integer pageSize = 10;
|
||||
|
||||
@ApiModelProperty("游标(初始为null,后续请求附带上次翻页的游标)")
|
||||
|
||||
@@ -5,6 +5,8 @@ import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.Max;
|
||||
|
||||
/**
|
||||
* @author <a href="https://github.com/zongzibinbin">abin</a>
|
||||
* @since 2023-03-19
|
||||
@@ -14,6 +16,7 @@ import lombok.Data;
|
||||
public class PageBaseReq{
|
||||
|
||||
@ApiModelProperty("页面大小")
|
||||
@Max(50)
|
||||
private Integer pageSize = 10;
|
||||
|
||||
@ApiModelProperty("页面索引(从1开始)")
|
||||
|
||||
Reference in New Issue
Block a user