From 1721eb2e1ef6a2b7481460d8ce72c6b2dadc9183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=B4=BA=E8=B4=BA?= <1510379943@qq.com> Date: Thu, 21 Nov 2024 16:47:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(entity):=20=E6=96=B0=E5=A2=9E=20Deliveries?= =?UTF-8?q?=20=E5=92=8C=20Items=20=E5=AE=9E=E4=BD=93=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建 Deliveries 类,包含配送相关的属性- 创建 Items 类,包含商品相关的属性 - 使用 Lombok 注解简化实体类代码 --- .../com/trading_platform/entity/Deliveries.java | 12 ++++++++++++ .../java/com/trading_platform/entity/Items.java | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 trading_platform/src/main/java/com/trading_platform/entity/Deliveries.java create mode 100644 trading_platform/src/main/java/com/trading_platform/entity/Items.java diff --git a/trading_platform/src/main/java/com/trading_platform/entity/Deliveries.java b/trading_platform/src/main/java/com/trading_platform/entity/Deliveries.java new file mode 100644 index 0000000..ca39d4c --- /dev/null +++ b/trading_platform/src/main/java/com/trading_platform/entity/Deliveries.java @@ -0,0 +1,12 @@ +package com.trading_platform.entity; + +import lombok.Data; + +@Data +public class Deliveries { + private int delivery_id; + private int order_id; + private int delivery_person_id; + private String delivery_status ; + private String delivery_at; +} diff --git a/trading_platform/src/main/java/com/trading_platform/entity/Items.java b/trading_platform/src/main/java/com/trading_platform/entity/Items.java new file mode 100644 index 0000000..e26be49 --- /dev/null +++ b/trading_platform/src/main/java/com/trading_platform/entity/Items.java @@ -0,0 +1,16 @@ +package com.trading_platform.entity; + +import lombok.Data; + +@Data +public class Items { + private int item_id; + private int user_id; + private String item_name; + private String description; + private int category_id; + private double price; + private String status; + private String create_at; + private String update_at; +}