实现知识库两级分类树与完整 CRUD

支持父子分类、展开侧栏与改删校验;选中父分类可筛子级条目;对齐左右顶栏并更新种子树形数据。
This commit is contained in:
yml2213
2026-07-15 13:23:23 +08:00
parent 2cfdacacb3
commit 4c298fc38d
5 changed files with 560 additions and 91 deletions
+2
View File
@@ -76,6 +76,8 @@ func SetupRoutes(r *gin.Engine, store storage.ObjectStorage, storageCfg config.S
kb := authRequired.Group("/knowledge")
kb.GET("/categories", knowledge.ListCategories)
kb.POST("/categories", knowledge.CreateCategory)
kb.PUT("/categories/:id", knowledge.UpdateCategory)
kb.DELETE("/categories/:id", knowledge.DeleteCategory)
kb.GET("/entries", knowledge.ListEntries)
kb.POST("/entries", knowledge.CreateEntry)
kb.PUT("/entries/:id", knowledge.UpdateEntry)