获取各平台未营业门店

This commit is contained in:
苏尹岚
2019-12-05 14:46:52 +08:00
parent 621ae66f6e
commit 9dd4c76074
7 changed files with 211 additions and 1 deletions

View File

@@ -562,3 +562,22 @@ func (c *StoreController) JdStoreInfoCoordinateRecover() {
return retVal, "", err
})
}
// @Title 导出平台门店信息
// @Description 导出平台门店信息
// @Param token header string true "认证token"
// @Param vendorIDs formData string true "平台ID列表"
// @Param isAsync formData bool false "是否异步操作"
// @Param isContinueWhenError formData bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetVendorStoreInfo [post]
func (c *StoreController) GetVendorStoreInfo() {
var vendorIDList []int
c.callGetVendorStoreInfo(func(params *tStoreGetVendorStoreInfoParams) (retVal interface{}, errCode string, err error) {
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDList); err == nil {
retVal, err = cms.GetVendorStoreInfo(params.Ctx, vendorIDList, params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})
}