You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
600 B

package router
import (
"pure/api"
"github.com/gin-gonic/gin"
)
func InitApiRouter(Router *gin.RouterGroup) {
ApiRouter := Router.Group("user")
{
ApiRouter.POST("register", api.UserRegister) // 注册用户
ApiRouter.POST("identify", api.UserIdentify) // 比对特征码获取人员 id
}
terminalRouter := Router.Group("terminal")
{
terminalRouter.POST("pant", api.TerminalPant) // 终端心跳上报
terminalRouter.POST("update", api.TerminalUpdateGet) // 终端获取最新固件更新
terminalRouter.PUT("update", api.TerminalUpdatePut) //终端固件更新完成
}
}