8017a3e3eef1999712ae94e0b8f3ed2d2257bb39.svn-base 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package cn.com.goldenwater.core.param;
  2. import io.swagger.annotations.ApiModelProperty;
  3. import io.swagger.annotations.ApiParam;
  4. public class PageParam extends BaseParam {
  5. @ApiParam(
  6. name = "pageNum",
  7. value = "页码",
  8. defaultValue = "1"
  9. )
  10. private int pageNum = 1;
  11. @ApiParam(
  12. name = "pageSize",
  13. value = "每页记录数",
  14. defaultValue = "10"
  15. )
  16. private int pageSize = 10;
  17. @ApiParam(
  18. name = "orderBy",
  19. value = "排序语句(例如:id desc, create_time desc)"
  20. )
  21. private String orderBy;
  22. @ApiParam(
  23. name = "count",
  24. value = "是否查询总数(默认不)",
  25. defaultValue = "false"
  26. )
  27. private boolean count = false;
  28. @ApiParam(
  29. name = "offset",
  30. value = "偏移量:上页最后一条记录标识"
  31. )
  32. private String offset;
  33. @ApiModelProperty(value = "机构id(必填)作为检索条件",required = true)
  34. private String orgId;
  35. @ApiModelProperty("行政编码,不需要传")
  36. private String province;
  37. public String getProvince() {
  38. return province;
  39. }
  40. public void setProvince(String province) {
  41. this.province = province;
  42. }
  43. public PageParam() {
  44. }
  45. public String getOrgId() {
  46. return orgId;
  47. }
  48. public void setOrgId(String orgId) {
  49. this.orgId = orgId;
  50. }
  51. public int getPageNum() {
  52. return this.pageNum;
  53. }
  54. public void setPageNum(int pageNum) {
  55. this.pageNum = pageNum;
  56. }
  57. public int getPageSize() {
  58. return this.pageSize;
  59. }
  60. public void setPageSize(int pageSize) {
  61. this.pageSize = pageSize;
  62. }
  63. public String getOrderBy() {
  64. return this.orderBy;
  65. }
  66. public void setOrderBy(String orderBy) {
  67. this.orderBy = orderBy;
  68. }
  69. public boolean getCount() {
  70. return this.count;
  71. }
  72. public void setCount(boolean containPageInfo) {
  73. this.count = this.count;
  74. }
  75. public String getOffset() {
  76. return this.offset;
  77. }
  78. public void setOffset(String offset) {
  79. this.offset = offset;
  80. }
  81. }