From 46b33168d8067b7be506e05a1c87fecdb3962e03 Mon Sep 17 00:00:00 2001 From: qimaohong Date: Thu, 10 Jul 2025 13:25:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 25 +++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..84adb3f --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# ---> Java +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + diff --git a/README.md b/README.md new file mode 100644 index 0000000..8b9350a --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ActivityProject + +海外活动管理项目后端项目 \ No newline at end of file From 91b64417271dded208c56adde8b41f8d4da442d5 Mon Sep 17 00:00:00 2001 From: jihaipeng <3204568531@qq.com> Date: Thu, 10 Jul 2025 15:52:47 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lottery/dto/Prize.java | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 lottery-system/lottery-pojo/src/main/java/com/lottery/dto/Prize.java 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