优化结构

This commit is contained in:
Yvan
2026-08-25 00:20:29 +08:00
parent 969afee284
commit ee179d6b34
49 changed files with 289 additions and 591 deletions
+11 -7
View File
@@ -1,12 +1,16 @@
package router
import "github.com/gin-gonic/gin"
import (
"kra/internal/server/handler"
func RegisterIntegrationConfig(group *gin.RouterGroup, handler *IntegrationConfig) {
"github.com/gin-gonic/gin"
)
func RegisterIntegrationConfig(group *gin.RouterGroup, h *handler.IntegrationConfig) {
configs := group.Group("/integration/configs")
configs.GET("/:kind", handler.List)
configs.GET("/:kind/:provider", handler.Find)
configs.PUT("/:kind/:provider", handler.Save)
configs.POST("/:kind/:provider/test", handler.Test)
configs.DELETE("/:kind/:provider", handler.Delete)
configs.GET("/:kind", h.List)
configs.GET("/:kind/:provider", h.Find)
configs.PUT("/:kind/:provider", h.Save)
configs.POST("/:kind/:provider/test", h.Test)
configs.DELETE("/:kind/:provider", h.Delete)
}