清空打印机队列
This commit is contained in:
@@ -647,3 +647,20 @@ func (c *StoreController) SyncJdStore() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 清空打印机打印队列
|
||||
// @Description 清空打印机打印队列
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs formData string true "门店列表"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /DeletePrinterSeq [post]
|
||||
func (c *StoreController) DeletePrinterSeq() {
|
||||
var storeIDList []int
|
||||
c.callDeletePrinterSeq(func(params *tStoreDeletePrinterSeqParams) (retVal interface{}, errCode string, err error) {
|
||||
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
|
||||
err = cms.DeletePrinterSeq(params.Ctx, storeIDList)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user