- 重构打印机流程,添加“外卖管家”打印

This commit is contained in:
gazebo
2019-04-09 11:35:27 +08:00
parent 358257c70d
commit 8c6b1bc067
14 changed files with 500 additions and 132 deletions

View File

@@ -162,3 +162,20 @@ func (c *InitDataController) RefreshEbaiBadComment() {
return retVal, "", err
})
}
// @Title 测试打印
// @Description 测试打印
// @Param token header string true "认证token"
// @Param vendorID formData int true "打印机厂商ID"
// @Param id1 formData string true "id1"
// @Param id2 formData string true "id2"
// @Param msg formData string true "打印消息"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /PrintMsg [post]
func (c *InitDataController) PrintMsg() {
c.callPrintMsg(func(params *tInitdataPrintMsgParams) (retVal interface{}, errCode string, err error) {
retVal, err = tempop.PrintMsg(params.Ctx, params.VendorID, params.Id1, params.Id2, params.Msg)
return retVal, "", err
})
}