打印机

This commit is contained in:
邹宗楠
2022-08-03 09:04:28 +08:00
parent 3ede3efd61
commit e552efc2ad
20 changed files with 435 additions and 22 deletions

View File

@@ -14,8 +14,10 @@ func Init(r *gin.Engine) {
InitV1System(r.Group("v1"))
// app端不需要token
InitV3App(r.Group("/v1"))
// app端需要token
InitV4App(r.Group("/v2"))
//自动路由
r.Any("/callback/*path", router.AutoRoute(&controllers.CallbackController{}))

View File

@@ -25,4 +25,7 @@ func InitV4App(v2 *gin.RouterGroup) {
temp.GET("/getUserTempList", app.PrinterTempController.GetUserTempList) // 获取用户模板,模板不足时填充系统模板
temp.GET("/switchTemp", app.PrinterTempController.SwitchTemp) // 切换模板打印模板
// 打印机设置
setting := v2.Group("/setting")
setting.POST("updatePrintSetting", app.PrintSettingController.UpdatePrintSetting) // 打印机设置修改
}