- ExportShopsHealthInfo
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user