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