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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Catlaxy AIandClaude Opus 5.5 authored and GitHub committed 2026-10-06 09:24:21 +08:00
1 parent 5976389ed4
commit c963fc7b89
32 files changed
+981 -24

No files matched your search

+2
View File
@@ -15,6 +15,7 @@ import (
)
func RegisterSkillRoutes(r *gin.RouterGroup, svc *service.Service) {
registerSkillCurationRoutes(r, svc)
r.POST("/skills/install", func(c *gin.Context) {
user, err := currentUser(c, svc)
if err != nil {
@@ -88,6 +89,7 @@ func RegisterSkillRoutes(r *gin.RouterGroup, svc *service.Service) {
return
}
result, err := svc.Skills(user.ID, service.SkillListRequest{
PlatformCategoryID: c.Query("platformCategoryId"), PlatformUncategorized: c.Query("platformUncategorized") == "true",
Page: page, PageSize: pageSize, Scope: c.DefaultQuery("scope", "public"),
Search: c.Query("search"), Tag: c.Query("tag"), Sort: c.DefaultQuery("sort", "popular"),
LibraryCategoryID: c.Query("libraryCategoryId"), LibraryUncategorized: libraryUncategorized,