From 5c3ffc9c327ceea07eb9a23bb14ff5443016b711 Mon Sep 17 00:00:00 2001 From: xinian Date: Mon, 23 Feb 2026 01:33:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=AE=80=E5=8C=96=E5=95=86?= =?UTF-8?q?=E5=93=81=E7=B1=BB=E5=9E=8B=E6=B3=A8=E9=87=8A=E5=B9=B6=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=86=97=E4=BD=99=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/config/model/shop.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/config/model/shop.go b/modules/config/model/shop.go index acc406c07..a98d10076 100644 --- a/modules/config/model/shop.go +++ b/modules/config/model/shop.go @@ -12,10 +12,9 @@ const ( // ShopConfig 商店商品核心配置模型 type ShopConfig struct { *BaseConfig - // 核心字段 - ProductName string `gorm:"not null;size:128;comment:'商品名称'" json:"product_name" description:"商品名称"` + //商品类型 - ProductType uint32 `gorm:"not null;default:0;comment:'商品类型(0-普通商品 1-虚拟商品 2-限时商品)'" json:"product_type" description:"商品类型"` + ProductType uint32 `gorm:"not null;default:0;comment:'商品类型'" json:"product_type" description:"商品类型"` //商品ID ProductID int64 `gorm:"not null;uniqueIndex;comment:'商品ID'" json:"product_id" description:"商品ID"`