package routers import ( "git.rosy.net.cn/jx-print/controllers" "github.com/gin-gonic/gin" ) func InitV2System(v2 *gin.RouterGroup) { //user user := v2.Group("/user") user.GET("/getTokenInfo", controllers.GetTokenInfo) user.POST("/logout", controllers.Logout) user.POST("/updateUser", controllers.UpdateUser) //app app := v2.Group("/app") app.GET("/getApps", controllers.GetApps) app.POST("/addApp", controllers.AddApp) app.POST("/delApp", controllers.DelApp) //print print := v2.Group("/print") print.POST("/addPrinters", controllers.AddPrinters) print.GET("/getPrinters", controllers.GetPrinters) print.POST("/delPrinters", controllers.DelPrinters) print.POST("/updatePrinter", controllers.UpdatePrinter) print.POST("/testPrint", controllers.TestPrint) print.GET("/getPrintMessages", controllers.GetPrintMessages) print.GET("/getPrinterReport", controllers.GetPrinterReport) //order order := v2.Group("/order") order.POST("/createOrder", controllers.CreateOrder) order.POST("/pay", controllers.Pay) //sim sim := v2.Group("/sim") sim.GET("/getCardsInfo", controllers.GetCardsInfo) sim.GET("/getChargeInfo", controllers.GetChargeInfo) }