CouponVo.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.kym.entity.vo;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import com.kym.entity.BaseEntity;
  4. import lombok.Data;
  5. import lombok.experimental.Accessors;
  6. import java.time.LocalDateTime;
  7. import java.util.List;
  8. /**
  9. * 优惠券表
  10. *
  11. * @author skyline
  12. * @since 2024-04-25
  13. */
  14. @Data
  15. @Accessors(chain = true)
  16. public class CouponVo extends BaseEntity {
  17. /**
  18. * 活动id
  19. */
  20. private Long activityId;
  21. /**
  22. * 优惠券名称
  23. */
  24. private String name;
  25. /**
  26. * 优惠券描述
  27. */
  28. private String couponDesc;
  29. /**
  30. * 开始时间
  31. */
  32. @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  33. private LocalDateTime startTime;
  34. /**
  35. * 结束时间
  36. */
  37. @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  38. private LocalDateTime endTime;
  39. /**
  40. * 领取方式:Release-系统发放,Collect-主动领取
  41. */
  42. private String receiveType;
  43. /**
  44. * 券种:Discount折扣券、FullDiscount满减券
  45. */
  46. private String couponType;
  47. /**
  48. * 使用门槛:最小服务费金额(分)
  49. */
  50. private Integer minServiceMoney;
  51. /**
  52. * 折扣:100代表无折扣,75代表75折;折扣金额(分)
  53. */
  54. private Integer discount;
  55. /**
  56. * 优惠允许叠加:0-不允许,1-允许
  57. */
  58. private Integer allowStacke;
  59. /**
  60. * 数量限制
  61. */
  62. private Integer quantity;
  63. /**
  64. * 已领取/发放数量
  65. */
  66. private Integer claimedQuantity;
  67. /**
  68. * 已使用数量
  69. */
  70. private Integer usedQuantity;
  71. /**
  72. * 活动状态:0-未开始,1-进行中,2-已结束,3-已取消
  73. */
  74. private Integer status;
  75. /**
  76. * 备注
  77. */
  78. private String remark;
  79. /**
  80. * 适用站点ID
  81. */
  82. private List<String> stationIds;
  83. }