This commit is contained in:
suyl
2021-07-22 18:56:18 +08:00
parent 08cdbe84cf
commit b903db0c13
6 changed files with 156 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ func Init(r *gin.Engine) {
print.POST("/updatePrinter", controllers.UpdatePrinter)
print.POST("/testPrint", controllers.TestPrint)
print.GET("/getPrintMessages", controllers.GetPrintMessages)
//order
order := v2.Group("/order")
order.POST("/createOrder", controllers.CreateOrder)
order.POST("/pay", controllers.Pay)
//v1是不需要token的
v1 := r.Group("v1")
@@ -36,6 +40,10 @@ func Init(r *gin.Engine) {
userw.GET("/getMenus", controllers.GetMenus)
userw.GET("/getMenuDetail", controllers.GetMenuDetail)
//config
config := v1.Group("/config")
config.GET("/getConfig", controllers.GetConfig)
//自动路由
r.Any("/callback/*path", router.AutoRoute(&controllers.CallbackController{}))
}