TableDataInfo.java 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package com.boman.domain;
  2. import java.io.Serializable;
  3. import java.util.List;
  4. /**
  5. * 表格分页数据对象
  6. *
  7. * @author ruoyi
  8. */
  9. public class TableDataInfo implements Serializable
  10. {
  11. private static final long serialVersionUID = 1L;
  12. /** 总记录数 */
  13. private long total;
  14. /** 列表数据 */
  15. private List<?> rows;
  16. /** 消息状态码 */
  17. private int code;
  18. /** 消息内容 */
  19. private String msg;
  20. /**
  21. * 表格数据对象
  22. */
  23. public TableDataInfo()
  24. {
  25. }
  26. /**
  27. * 分页
  28. *
  29. * @param list 列表数据
  30. * @param total 总记录数
  31. */
  32. public TableDataInfo(List<?> list, int total)
  33. {
  34. this.rows = list;
  35. this.total = total;
  36. }
  37. public long getTotal()
  38. {
  39. return total;
  40. }
  41. public void setTotal(long total)
  42. {
  43. this.total = total;
  44. }
  45. public List<?> getRows()
  46. {
  47. return rows;
  48. }
  49. public void setRows(List<?> rows)
  50. {
  51. this.rows = rows;
  52. }
  53. public int getCode()
  54. {
  55. return code;
  56. }
  57. public void setCode(int code)
  58. {
  59. this.code = code;
  60. }
  61. public String getMsg()
  62. {
  63. return msg;
  64. }
  65. public void setMsg(String msg)
  66. {
  67. this.msg = msg;
  68. }
  69. }