HomeManagementConfig.java 1023 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.cyksj.model.entity;
  2. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import lombok.Getter;
  5. import lombok.Setter;
  6. /*
  7. *项目名: netflix
  8. *文件名: HomeManagementConfig
  9. *创建者: JavaZou
  10. *创建时间:2023/8/17 15:49
  11. */
  12. @Getter
  13. @Setter
  14. public class HomeManagementConfig extends BaseEntity{
  15. private String title;
  16. private String pic;
  17. private String url;
  18. private Long goodsId;
  19. private Type type;
  20. private Integer sorted;
  21. private String tag;
  22. private Boolean status;
  23. /**
  24. * 定时上下架状态 默认null
  25. */
  26. @TableField(updateStrategy = FieldStrategy.IGNORED)
  27. private Boolean preStatus;
  28. /**
  29. * 定时上下架时间
  30. */
  31. @TableField(updateStrategy = FieldStrategy.IGNORED)
  32. private Long time;
  33. private Boolean deleted;
  34. @Getter
  35. public enum Type {
  36. ad("广告"),
  37. vg("虚拟平台推荐"),
  38. rg("实物平台推荐"),
  39. ex("精彩推荐"),
  40. ;
  41. String desc;
  42. Type(String desc) {
  43. this.desc = desc;
  44. }
  45. }
  46. }