feat(skills): 技能管理 - 增加可选的平台子分类策展 (#693)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Catlaxy AI
2026-10-06 09:24:21 +08:00
committed by GitHub
parent f6003c1c88
commit fb4af9bd34
32 changed files with 981 additions and 24 deletions

View File

@@ -0,0 +1,21 @@
package model
type SkillCurationSetting struct {
ID int `gorm:"primaryKey;autoIncrement:false" json:"-"`
Enabled bool `json:"enabled"`
Revision int64 `json:"revision"`
}
type SkillCurationCategory struct {
ID string `gorm:"primaryKey;size:36" json:"id"`
RootTag string `gorm:"size:36;not null;uniqueIndex:idx_curation_category_name" json:"rootTag"`
Name string `gorm:"size:64;not null" json:"name"`
NormalizedName string `gorm:"size:128;not null;uniqueIndex:idx_curation_category_name" json:"-"`
SortOrder int `json:"sortOrder"`
Enabled bool `json:"enabled"`
}
type SkillCurationAssignment struct {
SkillID string `gorm:"primaryKey;size:36" json:"skillId"`
CategoryID string `gorm:"primaryKey;size:36;index" json:"categoryId"`
}