GiftCard.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.ylx.giftCard.domain;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import com.ylx.common.core.domain.BaseEntity;
  4. import lombok.Data;
  5. import lombok.EqualsAndHashCode;
  6. import java.math.BigDecimal;
  7. import java.time.LocalDateTime;
  8. /**
  9. * 购物卡信息表
  10. */
  11. @EqualsAndHashCode(callSuper = true)
  12. @Data
  13. public class GiftCard extends BaseEntity {
  14. private static final long serialVersionUID = 2378338959829222898L;
  15. /**
  16. * 主键ID
  17. */
  18. @TableId(value = "id", type = IdType.AUTO)
  19. private Long id;
  20. /**
  21. * 商户ID
  22. */
  23. private String merchantId;
  24. /**
  25. * 购物卡名称,如“200元购物卡”
  26. */
  27. private String name;
  28. /**
  29. * 面值金额,单位:元
  30. */
  31. private BigDecimal amount;
  32. /**
  33. * 商户提成比例,如 1.00 表示 1%
  34. */
  35. private BigDecimal commissionRate;
  36. /**
  37. * 缩略图URL(上传后存储路径)
  38. */
  39. private String imageUrl;
  40. /**
  41. * 是否上架:1=上架,0=下架
  42. */
  43. private Integer isPublished;
  44. /**
  45. * 详情(富文本,可存HTML或Markdown)
  46. */
  47. private String description;
  48. }