1
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
昔念
2026-04-26 02:33:06 +08:00
parent 4906197c77
commit c07e521e4e
12 changed files with 265 additions and 348 deletions

View File

@@ -11,23 +11,23 @@ const (
type PeakTianxuan struct {
*BaseConfig
WeekIndex uint32 `gorm:"not null;index:idx_peak_tianxuan_week;uniqueIndex:idx_peak_tianxuan_week_pet;comment:'周序号'" json:"week_index"`
DisplayOrder uint32 `gorm:"not null;default:0;comment:'展示顺序'" json:"display_order"`
PetID uint32 `gorm:"not null;uniqueIndex:idx_peak_tianxuan_week_pet;comment:'天选精灵ID'" json:"pet_id"`
PresetName string `gorm:"type:varchar(64);not null;default:'';comment:'预设显示名'" json:"preset_name"`
Level uint32 `gorm:"not null;default:100;comment:'预设等级'" json:"level"`
Nature uint32 `gorm:"not null;default:0;comment:'预设性格'" json:"nature"`
Hp uint32 `gorm:"not null;default:0;comment:'预设当前生命'" json:"hp"`
MaxHp uint32 `gorm:"not null;default:0;comment:'预设最大生命'" json:"max_hp"`
Attack uint32 `gorm:"not null;default:0;comment:'预设攻击'" json:"attack"`
Defence uint32 `gorm:"not null;default:0;comment:'预设防御'" json:"defence"`
SpAttack uint32 `gorm:"not null;default:0;comment:'预设特攻'" json:"sp_attack"`
SpDefence uint32 `gorm:"not null;default:0;comment:'预设特防'" json:"sp_defence"`
Speed uint32 `gorm:"not null;default:0;comment:'预设速度'" json:"speed"`
SkinID uint32 `gorm:"not null;default:0;comment:'预设皮肤ID'" json:"skin_id"`
EffectIDs []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'预设特性/效果ID列表'" json:"effect_ids"`
SkillIDs []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'预设技能ID列表'" json:"skill_ids"`
VoteCount uint32 `gorm:"not null;default:0;comment:'票数统计'" json:"vote_count"`
PlayerID uint32 `gorm:"not null;index:idx_peak_tianxuan_player;uniqueIndex:idx_peak_tianxuan_player_pet;comment:'所属玩家ID'" json:"player_id"`
DisplayOrder uint32 `gorm:"not null;default:0;comment:'展示顺序'" json:"display_order"`
PetID uint32 `gorm:"not null;uniqueIndex:idx_peak_tianxuan_player_pet;comment:'天选精灵ID'" json:"pet_id"`
PresetName string `gorm:"type:varchar(64);not null;default:'';comment:'预设显示名'" json:"preset_name"`
Level uint32 `gorm:"not null;default:100;comment:'预设等级'" json:"level"`
Nature uint32 `gorm:"not null;default:0;comment:'预设性格'" json:"nature"`
Hp uint32 `gorm:"not null;default:0;comment:'预设当前生命'" json:"hp"`
MaxHp uint32 `gorm:"not null;default:0;comment:'预设最大生命'" json:"max_hp"`
Attack uint32 `gorm:"not null;default:0;comment:'预设攻击'" json:"attack"`
Defence uint32 `gorm:"not null;default:0;comment:'预设防御'" json:"defence"`
SpAttack uint32 `gorm:"not null;default:0;comment:'预设特攻'" json:"sp_attack"`
SpDefence uint32 `gorm:"not null;default:0;comment:'预设特防'" json:"sp_defence"`
Speed uint32 `gorm:"not null;default:0;comment:'预设速度'" json:"speed"`
SkinID uint32 `gorm:"not null;default:0;comment:'预设皮肤ID'" json:"skin_id"`
EffectIDs []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'预设特性/效果ID列表'" json:"effect_ids"`
SkillIDs []uint32 `gorm:"type:jsonb;not null;default:'[]';comment:'预设技能ID列表'" json:"skill_ids"`
VoteCount uint32 `gorm:"not null;default:0;comment:'票数统计'" json:"vote_count"`
}
func (*PeakTianxuan) TableName() string {