- yilianyun printer added
This commit is contained in:
@@ -3,6 +3,7 @@ package controllers
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/tempop"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||
"git.rosy.net.cn/jx-callback/business/jxutils/netprinter"
|
||||
)
|
||||
|
||||
// @Title 将为份的商品在京东转成SPU
|
||||
@@ -168,14 +169,30 @@ func (c *InitDataController) RefreshEbaiBadComment() {
|
||||
// @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 "打印消息"
|
||||
// @Param id2 formData string false "id2"
|
||||
// @Param msgTitle formData string false "消息标题"
|
||||
// @Param msgContent 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)
|
||||
retVal, err = tempop.PrintMsg(params.Ctx, params.VendorID, params.Id1, params.Id2, params.MsgTitle, params.MsgContent)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 测试打印订单
|
||||
// @Description 测试打印订单
|
||||
// @Param token header string true "认证token"
|
||||
// @Param vendorOrderID formData string true "订单ID"
|
||||
// @Param vendorID formData int true "订单所属厂商ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /PringOrder [post]
|
||||
func (c *InitDataController) PringOrder() {
|
||||
c.callPringOrder(func(params *tInitdataPringOrderParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = netprinter.PrintOrder(params.Ctx, params.VendorOrderID, params.VendorID)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user