refactor(config): 调整塔配置结构体字段定义 移除了Name和TowerLevel字段中多余的空格,并将BossIds字段从切片类型 改为普通uint32类型,同时更新了数据库标签注释内容。 ```
This commit is contained in:
@@ -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 创建基础塔配置实例(所有塔类型共用)
|
||||
|
||||
Reference in New Issue
Block a user