| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- package com.ylx.giftCard.domain;
- import com.baomidou.mybatisplus.annotation.*;
- import com.ylx.common.core.domain.BaseEntity;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import java.math.BigDecimal;
- import java.time.LocalDateTime;
- /**
- * 购物卡信息表
- */
- @EqualsAndHashCode(callSuper = true)
- @Data
- public class GiftCard extends BaseEntity {
- private static final long serialVersionUID = 2378338959829222898L;
- /**
- * 主键ID
- */
- @TableId(value = "id", type = IdType.AUTO)
- private Long id;
- /**
- * 商户ID
- */
- private String merchantId;
- /**
- * 购物卡名称,如“200元购物卡”
- */
- private String name;
- /**
- * 面值金额,单位:元
- */
- private BigDecimal amount;
- /**
- * 商户提成比例,如 1.00 表示 1%
- */
- private BigDecimal commissionRate;
- /**
- * 缩略图URL(上传后存储路径)
- */
- private String imageUrl;
- /**
- * 是否上架:1=上架,0=下架
- */
- private Integer isPublished;
- /**
- * 详情(富文本,可存HTML或Markdown)
- */
- private String description;
- }
|