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

This commit is contained in:
昔念
2026-02-13 22:57:05 +08:00
parent d258274322
commit e5c75f7359
51 changed files with 230 additions and 254 deletions

View File

@@ -12,12 +12,11 @@ const (
// ColorfulSkin 炫彩皮肤核心配置模型(完整保留原有字段,仅更名适配)
type ColorfulSkin struct {
*cool.Model
*BaseConfig
// 核心必填字段
Color data.GlowFilter `gorm:"type:jsonb;not null;;comment:'炫彩皮肤颜色(唯一标识每条配置)'" json:"color" description:"炫彩皮肤颜色"`
IsEnabled uint32 `gorm:"not null;default:1;comment:'是否启用0-禁用 1-启用)'" json:"is_enabled" description:"是否启用"`
Author string `gorm:"not null;size:64;default:'';comment:'炫彩皮肤配置作者(创建人/配置者名称)'" json:"author" description:"作者"`
RefreshCount uint32 `gorm:"not null;default:0;comment:'累计刷新次数(炫彩皮肤外观刷新次数统计)'" json:"refresh_count" description:"刷新次数"`
UsageCount uint32 `gorm:"not null;default:0;comment:'累计使用次数(炫彩皮肤使用次数统计)'" json:"usage_count" description:"使用次数"`
@@ -26,9 +25,6 @@ type ColorfulSkin struct {
ElfProbability uint32 `gorm:"not null;default:0;comment:'野生精灵概率0-10000'" json:"elf_probability" description:"野生精灵概率"`
//投票
VoteCount uint32 `gorm:"not null;default:0;comment:'投票次数'" json:"vote_count" description:"投票次数"`
// 辅助备注字段
Remark string `gorm:"size:512;default:'';comment:'炫彩皮肤备注'" json:"remark" description:"备注信息"`
}
// -------------------------- 核心配套方法(仅更名适配,逻辑不变)--------------------------
@@ -42,7 +38,7 @@ func (*ColorfulSkin) GroupName() string {
func NewColorfulSkin() *ColorfulSkin {
return &ColorfulSkin{
Model: cool.NewModel(),
BaseConfig: NewBaseConfig(),
}
}