package com.zsElectric.boot.business.model.entity; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.Version; import com.zsElectric.boot.common.base.BaseEntity; import lombok.Getter; import lombok.Setter; import com.baomidou.mybatisplus.annotation.TableName; /** * 优惠劵模板实体对象 * * @author zsElectric * @since 2025-12-15 11:14 */ @Getter @Setter @TableName("c_coupon_template") public class CouponTemplate extends BaseEntity { private static final long serialVersionUID = 1L; /** * 优惠劵名 */ private String name; /** * 优惠劵描述 */ private String description; /** * 状态 1.上线 2.下线 */ private Integer status; /** * 发放数量, -1 - 则表示不限制 */ private Integer totalCount; /** * 失效时间,领取后的几天。 */ private Integer failureTime; /** * 设置满多少金额可用,单位:分 */ private Integer usePrice; /** * 优惠金额,单位:分 */ private Integer discountPrice; /** * 领取时间:周 星期一 1 2 3 4 5 6 7 */ private String validTimeWeeks; /** * 领取时间 时分 08:20 */ private String validTimeHour; /** * 发放的总数量 */ private Integer totalCountAll; /** * 失效的数量 */ private Integer failureCount; /** * 创建人 */ private Long createBy; /** * 更新人 */ private Long updateBy; /** * 乐观锁 */ @Version private Integer version; /** * 逻辑删除(0-未删除 1-已删除) */ @TableLogic private Integer isDeleted; }