This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

32
api/pilot/pilot.go Normal file
View File

@ -0,0 +1,32 @@
package pilot
import (
"github.com/gogf/gf/v2/net/ghttp"
"github.com/tiger1103/gfast/v3/api/pilot/manage"
_map "github.com/tiger1103/gfast/v3/api/pilot/map"
"github.com/tiger1103/gfast/v3/api/pilot/wayline"
"github.com/tiger1103/gfast/v3/api/pilot/ws"
)
func InitPlilotAPI(group *ghttp.RouterGroup) {
group.Middleware(ghttp.MiddlewareCORS)
group.Group("/manage", func(group *ghttp.RouterGroup) {
group.Group("/api/v1", func(group *ghttp.RouterGroup) {
group.Bind(new(manage.LOGIN))
//service.GfToken().Middleware(group)
group.Bind(new(manage.MANAGE))
group.Bind(new(ws.WS))
})
})
group.Group("/wayline", func(group *ghttp.RouterGroup) {
group.Group("/api/v1", func(group *ghttp.RouterGroup) {
group.Bind(new(wayline.WAYLINE))
})
})
group.Group("/map", func(group *ghttp.RouterGroup) {
group.Group("/api/v1", func(group *ghttp.RouterGroup) {
group.Bind(new(_map.MAP))
})
})
}