package com.kexue.skills.entity.base;

import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel
public class BaseQueryDto implements Serializable {

    public static final Integer DEFAULT_PAGE_SIZE = 10;
    public static final Integer DEFAULT_CURRENT_PAGE = 1;

    @Schema(description ="当前页")
    private Integer pageNum;

    @Schema(description ="每页数量")
    private Integer pageSize;

    @Schema(description ="排序字段")
    private String sortBy;

    @Schema(description ="是否降序排序")
    private Boolean sortDesc;

}
