From 5e9ac0bef55ff5485a848d53c6a7cb326e15b75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Wed, 25 Feb 2026 14:03:27 +0800 Subject: [PATCH] =?UTF-8?q?```=20refactor(config):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=A1=94=E9=85=8D=E7=BD=AE=E7=BB=93=E6=9E=84=E4=BD=93=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了Name和TowerLevel字段中多余的空格,并将BossIds字段从切片类型 改为普通uint32类型,同时更新了数据库标签注释内容。 ``` --- modules/config/model/tower_110.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/config/model/tower_110.go b/modules/config/model/tower_110.go index 32a9ef49..c4b653fb 100644 --- a/modules/config/model/tower_110.go +++ b/modules/config/model/tower_110.go @@ -13,9 +13,9 @@ const ( type BaseTowerConfig struct { *BaseConfig - Name string `gorm:"type:varchar(100);default:'';comment:'塔名称'" json:"name" description:"塔名称"` - TowerLevel uint32 `gorm:"not null;default:0;uniqueIndex;comment:'塔层数'" json:"tower_level" ` - BossIds []uint32 `gorm:"not null;type:jsonb;default:'[]';comment:'绑定BOSS ID数组'" json:"boss_ids" ` + Name string `gorm:"type:varchar(100);default:'';comment:'塔名称'" json:"name" description:"塔名称"` + TowerLevel uint32 `gorm:"not null;default:0;uniqueIndex;comment:'塔层数'" json:"tower_level" ` + BossIds uint32 `gorm:"type:jsonb; ;comment:'塔层BOSS ID列表'" json:"boss_ids"` } // NewBaseTowerConfig 创建基础塔配置实例(所有塔类型共用)