RequestPageInfo.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.sckw.freight.model.vo.request;
  2. import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  3. import io.swagger.v3.oas.annotations.media.Schema;
  4. import lombok.Data;
  5. /**
  6. * @BelongsProject: Freight-Settlement-Backend
  7. * @BelongsPackage: com.sckw.freight.model.vo.request
  8. * @Author: xj
  9. * @CreateTime: 2025-01-09 19:55
  10. * @Description: 请求分页数据
  11. * @Version: 1.0
  12. */
  13. @JsonIgnoreProperties(ignoreUnknown = true)
  14. @Data
  15. @Schema( description = "分页查询参数")
  16. public class RequestPageInfo {
  17. private static final long serialVersionUID = 1L;
  18. /**
  19. * 当前页码
  20. */
  21. @Schema(description = "当前页码",allowableValues = "1,2,3,4,5",example = "1")
  22. private long page=1;
  23. /**
  24. * 每页数量
  25. */
  26. @Schema(description = "每页数量",allowableValues = "1,10,20,50,100")
  27. private long pageSize=10;
  28. /**
  29. * 排序字段
  30. */
  31. @Schema(description = "排序字段")
  32. private String sortField;
  33. /**
  34. * 排序方式
  35. */
  36. @Schema(description = "排序方式", allowableValues = "asc,desc")
  37. private String sortOrder;
  38. }