zhangzengfei
2024-05-16 790c60c55054b3e75043eaed11eaef8584d2001d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package routes
 
import (
    "gat1400Exchange/controller"
 
    "github.com/gin-gonic/gin"
)
 
// 注册公共功能路由
func InitSystemRouters(r *gin.RouterGroup) gin.IRoutes {
    sysCtl := controller.NewSystemController()
 
    router := r.Group("/System")
    {
        router.POST("/Register", sysCtl.Register)
        router.POST("/UnRegister", sysCtl.UnRegister)
        router.POST("/Keepalive", sysCtl.Keepalive)
        router.GET("/Time", sysCtl.Time)
    }
 
    r.GET("/APEs", sysCtl.ApeList)
    r.POST("/APEs", sysCtl.ApeUpdate)
 
    return r
}