CouponTemplateVO.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.zsElectric.boot.business.model.vo;
  2. import java.io.Serial;
  3. import java.io.Serializable;
  4. import java.time.LocalDateTime;
  5. import io.swagger.v3.oas.annotations.media.Schema;
  6. import lombok.Getter;
  7. import lombok.Setter;
  8. import java.time.LocalDateTime;
  9. import java.math.BigDecimal;
  10. /**
  11. * 优惠劵模板视图对象
  12. *
  13. * @author zsElectric
  14. * @since 2025-12-19 10:10
  15. */
  16. @Getter
  17. @Setter
  18. @Schema( description = "优惠劵模板视图对象")
  19. public class CouponTemplateVO implements Serializable {
  20. @Serial
  21. private static final long serialVersionUID = 1L;
  22. @Schema(description = "主键ID")
  23. private Long id;
  24. @Schema(description = "优惠券码")
  25. private String code;
  26. @Schema(description = "优惠劵名")
  27. private String name;
  28. @Schema(description = "类型:1(折扣)、2(满减)、3(无门槛)")
  29. private Integer type;
  30. @Schema(description = "优惠劵描述")
  31. private String description;
  32. @Schema(description = "状态 1.上线 2.下线")
  33. private Integer status;
  34. @Schema(description = "发放数量, -1 - 则表示不限制")
  35. private Integer totalCount;
  36. @Schema(description = "失效时间,领取后的几天。")
  37. private Integer failureTime;
  38. @Schema(description = "满减门槛 (设置满多少金额可用,单位:元)")
  39. private BigDecimal usePrice;
  40. @Schema(description = "优惠值(折扣率/减额)")
  41. private BigDecimal discountPrice;
  42. @Schema(description = "领取时间:周 星期一 1 2 3 4 5 6 7")
  43. private String validTimeWeeks;
  44. @Schema(description = "领取时间 时分 08:20")
  45. private String validTimeHour;
  46. @Schema(description = "发放的总数量")
  47. private Integer totalCountAll;
  48. @Schema(description = "失效的数量")
  49. private Integer failureCount;
  50. @Schema(description = "创建时间")
  51. private LocalDateTime createTime;
  52. @Schema(description = "创建人")
  53. private Long createBy;
  54. @Schema(description = "更新时间")
  55. private LocalDateTime updateTime;
  56. @Schema(description = "更新人")
  57. private Long updateBy;
  58. @Schema(description = "乐观锁")
  59. private Integer version;
  60. @Schema(description = "逻辑删除(0-未删除 1-已删除)")
  61. private Integer isDeleted;
  62. }