[octopus-go] 初步完成gin gorm框架集成

This commit is contained in:
zeaslity
2023-03-07 17:32:35 +08:00
parent a18f2353a9
commit da56f6586c
9 changed files with 416 additions and 1 deletions

18
agent-go/router/router.go Normal file
View File

@@ -0,0 +1,18 @@
package router
import (
_ "agent-go/service"
"github.com/gin-gonic/gin"
)
func Routers() *gin.Engine {
Router := gin.Default()
ServerGroup := Router.Group("/core")
// register server app
ServerRouterAPP.InitServerRouter(ServerGroup)
return Router
}