This commit is contained in:
suyl
2021-06-25 09:32:11 +08:00
parent cfcab79a6d
commit b336512a5b
4 changed files with 28 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
package controllers
import "github.com/astaxie/beego/server/web"
type ApiController struct {
web.Controller
}
// @Title 添加打印机
// @Description 添加打印机
// @Param app_id formData string true "应用ID"
// @Param timestamp formData int true "unix时间戳"
// @Param sign formData string true "签名"
// @Param method formData string true "接口名"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AddPrint [post]
//func (c *PrintController) AddPrint() {
//
//}

View File

@@ -8,14 +8,11 @@ type PrintController struct {
beego.Controller
}
type CallBackPrint struct {
Data string `json:"data"`
Code string `json:"code"`
}
// @Title 添加打印机
// @Description 添加打印机
// @Param token header string true "认证token"
// @Param app_id formData string true "应用ID"
// @Param timestamp formData int true "unix时间戳"
// @Param sign formData string true "签名"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AddPrint [post]