diff --git a/lottery-system/lottery-pojo/src/main/java/com/lottery/dto/Prize.java b/lottery-system/lottery-pojo/src/main/java/com/lottery/dto/Prize.java new file mode 100644 index 0000000..5e8adda --- /dev/null +++ b/lottery-system/lottery-pojo/src/main/java/com/lottery/dto/Prize.java @@ -0,0 +1,80 @@ +package com.lottery.dto; + +import lombok.Data; + +/** + * @program: lottery-system + * @ClassName Gift + * @description: + * @author:jihaipeng + * @create: 2025−07-10 15:20 + * @Version 1.0 + **/ +import java.math.BigDecimal; +import java.util.Date; + +public class Prize { + // 主键ID + private Long id; + + // 名称 + private String name; + + // 描述 + private String description; + + // 图片URL + private String imageUrl; + + // 库存数量 + private Integer stock; + + // 中奖概率 + private BigDecimal probability; + + // 奖品类型 + private Integer prizeType; + + // 状态 + private Integer status; + + // 创建时间 + private Date createTime; + + // 更新时间 + private Date updateTime; + + // 无参构造函数 + public Prize() { + } + + // 全参构造函数(可选) + public Prize(Long id, String name, String description, String imageUrl, Integer stock, + BigDecimal probability, Integer prizeType, Integer status, + Date createTime, Date updateTime) { + this.id = id; + this.name = name; + this.description = description; + this.imageUrl = imageUrl; + this.stock = stock; + this.probability = probability; + this.prizeType = prizeType; + this.status = status; + this.createTime = createTime; + this.updateTime = updateTime; + } + + // Getter 和 Setter 方法 + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public \ No newline at end of file