CmBaikeHotSearch.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. package com.caimei.modules.baike.entity;
  2. import org.hibernate.validator.constraints.Length;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import com.thinkgem.jeesite.common.persistence.DataEntity;
  6. /**
  7. * 采美百科热搜词Entity
  8. * @author Aslee
  9. * @version 2021-11-18
  10. */
  11. public class CmBaikeHotSearch extends DataEntity<CmBaikeHotSearch> {
  12. private static final long serialVersionUID = 1L;
  13. private String keyWord; // 热搜词
  14. private Integer jumpType; // 跳转方式:1仅搜索,2产品,3仪器,4链接
  15. private Integer productId; // 产品/仪器id
  16. private String jumpLink; // 跳转链接
  17. private Integer sort; // 排序值
  18. private Integer status; // 状态:0停用,1启用
  19. private Date addTime; // 添加时间
  20. private Integer addBy; // 添加人
  21. private String addUserName; //添加人名称
  22. private Integer instrumentId; // 仪器id
  23. public CmBaikeHotSearch() {
  24. super();
  25. }
  26. public CmBaikeHotSearch(String id){
  27. super(id);
  28. }
  29. @Length(min=0, max=15, message="热搜词长度必须介于 0 和 15 之间")
  30. public String getKeyWord() {
  31. return keyWord;
  32. }
  33. public void setKeyWord(String keyWord) {
  34. this.keyWord = keyWord;
  35. }
  36. public Integer getJumpType() {
  37. return jumpType;
  38. }
  39. public void setJumpType(Integer jumpType) {
  40. this.jumpType = jumpType;
  41. }
  42. public Integer getProductId() {
  43. return productId;
  44. }
  45. public void setProductId(Integer productId) {
  46. this.productId = productId;
  47. }
  48. public String getJumpLink() {
  49. return jumpLink;
  50. }
  51. public void setJumpLink(String jumpLink) {
  52. this.jumpLink = jumpLink;
  53. }
  54. public Integer getSort() {
  55. return sort;
  56. }
  57. public void setSort(Integer sort) {
  58. this.sort = sort;
  59. }
  60. public Integer getStatus() {
  61. return status;
  62. }
  63. public void setStatus(Integer status) {
  64. this.status = status;
  65. }
  66. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  67. public Date getAddTime() {
  68. return addTime;
  69. }
  70. public void setAddTime(Date addTime) {
  71. this.addTime = addTime;
  72. }
  73. public Integer getAddBy() {
  74. return addBy;
  75. }
  76. public void setAddBy(Integer addBy) {
  77. this.addBy = addBy;
  78. }
  79. public String getAddUserName() {
  80. return addUserName;
  81. }
  82. public void setAddUserName(String addUserName) {
  83. this.addUserName = addUserName;
  84. }
  85. public Integer getInstrumentId() {
  86. return instrumentId;
  87. }
  88. public void setInstrumentId(Integer instrumentId) {
  89. this.instrumentId = instrumentId;
  90. }
  91. }