This commit is contained in:
@@ -37,8 +37,7 @@ type PetBaseConfig struct {
|
||||
|
||||
SKill []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'BOSS技能'" json:"skill"`
|
||||
|
||||
IsEnable uint32 `gorm:"not null;default:0;comment:'是否启用'" json:"is_enable"`
|
||||
Desc *string `gorm:"comment:'BOSS描述'" json:"desc"`
|
||||
Desc *string `gorm:"comment:'BOSS描述'" json:"desc"`
|
||||
|
||||
// ISMELEE uint32 `gorm:"not null;default:0;comment:'是否乱斗配置'" json:"is_melee"`
|
||||
// // ===================== BOSS奖励规则(Boss_bonus) =====================
|
||||
|
||||
@@ -51,8 +51,8 @@ func NewTowerService(towerType TowerType) *TowerService {
|
||||
|
||||
// UnifiedTowerModel 统一的塔模型,通过设置不同的表名来区分不同类型的塔
|
||||
type UnifiedTowerModel struct {
|
||||
*cool.Model `json:"-" gorm:"embedded"` // 嵌入通用Model
|
||||
tableName string
|
||||
*cool.Model
|
||||
tableName string
|
||||
}
|
||||
|
||||
// TableName 返回当前模型对应的表名
|
||||
|
||||
Reference in New Issue
Block a user