package com.kexue.skills.entity.base;

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

/**
 * 基础查询DTO
 */
@Data
@Schema(description = "基础查询参数")
public class BaseQueryDto {

    public static final Integer DEFAULT_PAGE_SIZE = 12;
    public static final Integer DEFAULT_CURRENT_PAGE = 1;
    @Schema(description = "页码，默认1")
    private Integer pageNum = 1;

    @Schema(description = "每页数量，默认20")
    private Integer pageSize = 20;

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

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