初始
This commit is contained in:
25
api/video_hat/router.go
Normal file
25
api/video_hat/router.go
Normal file
@ -0,0 +1,25 @@
|
||||
package video_hat
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/net/ghttp"
|
||||
"github.com/tiger1103/gfast/v3/api/video_hat/alarm"
|
||||
"github.com/tiger1103/gfast/v3/api/video_hat/guiji_back5"
|
||||
"github.com/tiger1103/gfast/v3/api/video_hat/photomange10"
|
||||
"github.com/tiger1103/gfast/v3/api/video_hat/video_playback11"
|
||||
"github.com/tiger1103/gfast/v3/api/video_hat/ws2"
|
||||
)
|
||||
|
||||
func InitHatAPI(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(VideoHat), // 视频安全帽获取Token
|
||||
new(photomange10.Pictures), // 照片管理10
|
||||
new(video_playback11.VideoPlayback), // 视频回放11
|
||||
new(ws2.WsRouter), // ws2相关
|
||||
new(guiji_back5.GuijiBack), // 轨迹相关
|
||||
new(alarm.Alarm))
|
||||
})
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user