All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.polyv.live.v1.entity.LivePageLimitCommonRequest Maven / Gradle / Ivy

The newest version!
package net.polyv.live.v1.entity;

import com.alibaba.fastjson.annotation.JSONField;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import net.polyv.common.v1.validator.constraints.Max;
import net.polyv.common.v1.validator.constraints.Min;

/**
 * 直播分页公共请求实体
 * @author: sadboy
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class LivePageLimitCommonRequest extends LiveCommonRequest {
    
    /**
     * 页数,默认为1
     */
    @ApiModelProperty(name = "currentPage", value = "页数,默认为1", dataType = "Integer", example = "1")
    @JSONField(name = "page")
    private Integer currentPage;
    
    /**
     * 每页显示的数据条数,默认每页显示20条数据
     */
    @ApiModelProperty(name = "pageSize", value = "每页显示的数据条数,默认每页显示20条数据", dataType = "Integer", example = "12")
    @Max(value = 1000, message = "每页显示的数据条数不能超过1000")
    @Min(value = 0, message = "每页显示的数据条数不能小于0")
    @JSONField(name = "limit")
    private Integer pageSize = 20;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy