- ExportShopsHealthInfo

This commit is contained in:
gazebo
2019-06-11 16:42:23 +08:00
parent ce4c4ac4b1
commit d0df80ac1e
6 changed files with 150 additions and 19 deletions

View File

@@ -351,3 +351,23 @@ func (c *StoreController) RefreshMissingDadaStores() {
return retVal, "", err
})
}
// @Title 导出门店健康度信息
// @Description 导出门店健康度信息
// @Param token header string true "认证token"
// @Param vendorIDs query string false "平台ID列表"
// @Param storeIDs query string false "门店ID列表"
// @Param isAsync query bool false "是否异步操作"
// @Param isContinueWhenError query bool false "单个同步失败是否继续缺省false"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /ExportShopsHealthInfo [get]
func (c *StoreController) ExportShopsHealthInfo() {
c.callExportShopsHealthInfo(func(params *tStoreExportShopsHealthInfoParams) (retVal interface{}, errCode string, err error) {
var vendorIDList, storeIDList []int
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDList, params.StoreIDs, &storeIDList); err == nil {
retVal, err = cms.ExportShopsHealthInfo(params.Ctx, vendorIDList, storeIDList, params.IsAsync, params.IsContinueWhenError)
}
return retVal, "", err
})
}