print controlller 添加打印机
This commit is contained in:
@@ -12,6 +12,7 @@ routinePoolSize = 1000
|
|||||||
[api]
|
[api]
|
||||||
httpport = 8889
|
httpport = 8889
|
||||||
EnableDocs = true
|
EnableDocs = true
|
||||||
|
addEvent = true
|
||||||
|
|
||||||
aliKey = "LTAI4FwZN7pp4dACQHoapkZQ"
|
aliKey = "LTAI4FwZN7pp4dACQHoapkZQ"
|
||||||
aliSecret = "NTegceUFX0FdfMovqCDzqcIKmhcoOu"
|
aliSecret = "NTegceUFX0FdfMovqCDzqcIKmhcoOu"
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package controllers
|
package controllers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
beego "github.com/astaxie/beego/server/web"
|
beego "github.com/astaxie/beego/server/web"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -15,13 +13,12 @@ type CallBackPrint struct {
|
|||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *PrintController) Msg() {
|
// @Title 添加打印机
|
||||||
//if c.Ctx.Input.Method() == http.MethodPost {
|
// @Description 添加打印机
|
||||||
callBackPrint := &CallBackPrint{}
|
// @Param token header string true "认证token"
|
||||||
globals.SugarLogger.Debugf("print callback callbackResponse:%s", utils.Format4Output(c.Ctx.Request, true))
|
// @Success 200 {object} controllers.CallResult
|
||||||
c.Data["json"] = callBackPrint
|
// @Failure 200 {object} controllers.CallResult
|
||||||
c.ServeJSON()
|
// @router /AddPrint [post]
|
||||||
//} else {
|
func (c *PrintController) AddPrint() {
|
||||||
// c.Abort("404")
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,5 @@ func Init() {
|
|||||||
SugarLogger.Infof("globals RunMode=%s", beego.BConfig.RunMode)
|
SugarLogger.Infof("globals RunMode=%s", beego.BConfig.RunMode)
|
||||||
AliKey = web.AppConfig.DefaultString("aliKey", "")
|
AliKey = web.AppConfig.DefaultString("aliKey", "")
|
||||||
AliSecret = web.AppConfig.DefaultString("aliSecret", "")
|
AliSecret = web.AppConfig.DefaultString("aliSecret", "")
|
||||||
|
IsAddEvent = web.AppConfig.DefaultBool("addEvent", false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user