feat(go): port knowledge compilation template/group + wiki artifact/nav/skill REST APIs from Python (#17656)

This commit is contained in:
Zhichang Yu
2026-07-31 22:57:43 +08:00
committed by GitHub
parent d67d14e4c6
commit b811dce1b0
18 changed files with 3428 additions and 54 deletions

View File

@@ -833,6 +833,9 @@ func startServer(ctx context.Context) {
componentsSvc := service.NewComponentsService()
componentsHandler := handler.NewComponentsHandler(componentsSvc)
pipelineHandler := handler.NewPipelineHandler()
compilationTemplateHandler := handler.NewCompilationTemplateHandler(service.NewCompilationTemplateService())
compilationTemplateGroupHandler := handler.NewCompilationTemplateGroupHandler(service.NewCompilationTemplateGroupService())
datasetArtifactHandler := handler.NewDatasetArtifactHandler(service.NewDatasetArtifactService(), datasetsService, file.NewFileCommitService())
// Initialize router
r := router.NewRouter(authHandler,
@@ -865,7 +868,10 @@ func startServer(ctx context.Context) {
openaiChatHandler,
botHandler,
componentsHandler,
pipelineHandler)
pipelineHandler,
compilationTemplateHandler,
compilationTemplateGroupHandler,
datasetArtifactHandler)
// Create Gin engine
ginEngine := gin.New()