fangyuan
2023-02-16 823d625c8c3cfd44925880038d06bc011d68a328
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.ycl.api;
 
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;
 
@Data
@ApiModel
public class BasePageVO implements Serializable {
 
    @ApiModelProperty(value = "当前页",example = "1")
    @Min(value = 1, message = "最小页数1")
    @TableField(value = "current",exist = false)
    private int current = 1;
 
    @ApiModelProperty(value = "条数",example = "1")
    @Min(value = 1, message = "最小条数1")
    @Max(value = 100, message = "最大条数100")
    @TableField(value = "page_size",exist = false)
    private int pageSize = 20;
 
}