This commit is contained in:
邹宗楠
2022-12-19 11:14:00 +08:00
parent e10db669dc
commit 57f699d16c
8 changed files with 51 additions and 13 deletions

View File

@@ -1544,7 +1544,7 @@ func (c *StoreController) CreateFreeShipTemplates() {
})
}
// @Title 打印机获取授权账号再京西菜市的绑定关系
// @Title 打印机获取授权账号再京西菜市的绑定关系(其实就是根据平台门店id获取绑定门店id)
// @Description 打印机获取授权账号再京西菜市的绑定关系
// @Param token header string true "认证token"
// @Param vendorStoreId formData string true "平台账号id"
@@ -1558,3 +1558,20 @@ func (c *StoreController) PrintCheckAccountAuthorization() {
return retVal, "", err
})
}
// @Title 门店存在时,绑定打印机账号信息
// @Description 门店存在时,绑定打印机账号信息
// @Param token header string true "认证token"
// @Param storeId formData int64 true "京西门店id"
// @Param printSn formData string true "打印机编号"
// @Param printKey formData string true "打印机秘钥"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /BindJxPrinter [post]
func (c *StoreController) BindJxPrinter() {
c.callBindJxPrinter(func(params *tStoreBindJxPrinterParams) (interface{}, string, error) {
err := cms.BindJxPrintToStore(int64(params.StoreId), params.PrintSn, params.PrintKey)
return nil, "", err
})
}