3076af3facd10de0458e7e8783591cf4b78c370c.svn-base 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. package cn.com.goldenwater.dcproj.param;
  2. import cn.com.goldenwater.core.param.PageParam;
  3. import cn.com.goldenwater.dcproj.model.Subject;
  4. import io.swagger.annotations.ApiParam;
  5. import java.util.Date;
  6. import java.io.Serializable;
  7. import io.swagger.annotations.ApiModelProperty;
  8. /**
  9. * SubjectParam
  10. *
  11. * @author lhc
  12. * @date 2020-10-20
  13. */
  14. public class SubjectParam extends Subject implements Serializable {
  15. @ApiParam(
  16. name = "pageNum",
  17. value = "页码",
  18. defaultValue = "1"
  19. )
  20. private int pageNum = 1;
  21. @ApiParam(
  22. name = "pageSize",
  23. value = "每页记录数",
  24. defaultValue = "10"
  25. )
  26. private int pageSize = 10;
  27. @ApiParam(
  28. name = "orderBy",
  29. value = "排序语句(例如:id desc, create_time desc)"
  30. )
  31. private String orderBy;
  32. @ApiParam(
  33. name = "count",
  34. value = "是否查询总数(默认不)",
  35. defaultValue = "false"
  36. )
  37. private boolean count = false;
  38. @ApiParam(
  39. name = "offset",
  40. value = "偏移量:上页最后一条记录标识"
  41. )
  42. private String offset;
  43. public int getPageNum() {
  44. return this.pageNum;
  45. }
  46. public void setPageNum(int pageNum) {
  47. this.pageNum = pageNum;
  48. }
  49. public int getPageSize() {
  50. return this.pageSize;
  51. }
  52. public void setPageSize(int pageSize) {
  53. this.pageSize = pageSize;
  54. }
  55. public String getOrderBy() {
  56. return this.orderBy;
  57. }
  58. public void setOrderBy(String orderBy) {
  59. this.orderBy = orderBy;
  60. }
  61. public boolean getCount() {
  62. return this.count;
  63. }
  64. public void setCount(boolean containPageInfo) {
  65. this.count = this.count;
  66. }
  67. public String getOffset() {
  68. return this.offset;
  69. }
  70. public void setOffset(String offset) {
  71. this.offset = offset;
  72. }
  73. }