CollectEntity.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. package com.kmall.admin.entity;
  2. import com.fasterxml.jackson.databind.annotation.JsonSerialize;
  3. import com.kmall.common.utils.JsonTimeSerializer;
  4. import java.io.Serializable;
  5. /**
  6. * @author Scott
  7. * @email
  8. * @date 2017-08-13 10:41:06
  9. */
  10. public class CollectEntity implements Serializable {
  11. private static final long serialVersionUID = 1L;
  12. //主键
  13. private Integer id;
  14. //用户Id
  15. private Long userId;
  16. private String userName;
  17. //产品Id
  18. private Integer valueId;
  19. private String valueName;
  20. //添加时间
  21. private Long addTime;
  22. //是否提醒
  23. private Integer isAttention;
  24. //
  25. private Integer typeId;
  26. /**
  27. * 设置:主键
  28. */
  29. public void setId(Integer id) {
  30. this.id = id;
  31. }
  32. /**
  33. * 获取:主键
  34. */
  35. public Integer getId() {
  36. return id;
  37. }
  38. /**
  39. * 设置:用户Id
  40. */
  41. public void setUserId(Long userId) {
  42. this.userId = userId;
  43. }
  44. /**
  45. * 获取:用户Id
  46. */
  47. public Long getUserId() {
  48. return userId;
  49. }
  50. /**
  51. * 设置:产品Id
  52. */
  53. public void setValueId(Integer valueId) {
  54. this.valueId = valueId;
  55. }
  56. /**
  57. * 获取:产品Id
  58. */
  59. public Integer getValueId() {
  60. return valueId;
  61. }
  62. /**
  63. * 设置:添加时间
  64. */
  65. public void setAddTime(Long addTime) {
  66. this.addTime = addTime;
  67. }
  68. /**
  69. * 获取:添加时间
  70. */
  71. @JsonSerialize(using = JsonTimeSerializer.class)
  72. public Long getAddTime() {
  73. return addTime;
  74. }
  75. /**
  76. * 设置:是否提醒
  77. */
  78. public void setIsAttention(Integer isAttention) {
  79. this.isAttention = isAttention;
  80. }
  81. /**
  82. * 获取:是否提醒
  83. */
  84. public Integer getIsAttention() {
  85. return isAttention;
  86. }
  87. /**
  88. * 设置:
  89. */
  90. public void setTypeId(Integer typeId) {
  91. this.typeId = typeId;
  92. }
  93. /**
  94. * 获取:
  95. */
  96. public Integer getTypeId() {
  97. return typeId;
  98. }
  99. public String getUserName() {
  100. return userName;
  101. }
  102. public void setUserName(String userName) {
  103. this.userName = userName;
  104. }
  105. public String getValueName() {
  106. return valueName;
  107. }
  108. public void setValueName(String valueName) {
  109. this.valueName = valueName;
  110. }
  111. }