From b502c5c44eaad110138e8b1f9827813320e2ad54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Fri, 25 Jul 2025 20:37:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A2=9C=E8=89=B2=E5=BA=94=E5=BD=93?= =?UTF-8?q?=E5=85=B7=E6=9C=89=E5=AE=B9=E5=B7=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iflytop/colortitration/common/model/entity/Color.java | 7 +++++++ src/main/resources/sql/init.sql | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/main/java/com/iflytop/colortitration/common/model/entity/Color.java b/src/main/java/com/iflytop/colortitration/common/model/entity/Color.java index 8857b1a..829a169 100644 --- a/src/main/java/com/iflytop/colortitration/common/model/entity/Color.java +++ b/src/main/java/com/iflytop/colortitration/common/model/entity/Color.java @@ -17,4 +17,11 @@ public class Color extends BaseEntity { @Schema(description = "颜色名称") private String name; + + @Schema(description = "颜色容差") + private double tolerance; + + @Schema(description = "颜色描述") + private String description; + } \ No newline at end of file diff --git a/src/main/resources/sql/init.sql b/src/main/resources/sql/init.sql index 8882673..8db2f9f 100644 --- a/src/main/resources/sql/init.sql +++ b/src/main/resources/sql/init.sql @@ -87,6 +87,8 @@ CREATE TABLE IF NOT EXISTS color id INTEGER PRIMARY KEY AUTOINCREMENT, code TEXT, name TEXT, + tolerance FLOAT, + description FLOAT, create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, update_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP );