HomeManagementConfig.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 AdType adType;
  34. private Boolean deleted;
  35. @Getter
  36. public enum Type {
  37. ad("广告"),
  38. vg("虚拟平台推荐"),
  39. rg("实物平台推荐"),
  40. ex("精彩推荐"),
  41. ;
  42. String desc;
  43. Type(String desc) {
  44. this.desc = desc;
  45. }
  46. }
  47. @Getter
  48. public enum AdType {
  49. pc("pc首页"),
  50. h5("h5首页"),
  51. pcSec("pc首页副"),
  52. pcDis("pc发现首页"),
  53. ;
  54. String desc;
  55. AdType(String desc) {
  56. this.desc = desc;
  57. }
  58. }
  59. }