This commit is contained in:
苏尹岚
2021-01-06 15:23:08 +08:00
parent dbe86ab33b
commit 57cb826087
3 changed files with 128 additions and 0 deletions

View File

@@ -96,3 +96,21 @@ func (c *ReportController) AutoFocusStoreSkus() {
return retVal, "", err
})
}
// @Title 查询经营概况
// @Description 查询经营概况
// @Param token header string true "认证token"
// @Param cityCodes query string false "城市ID列表[1,2,3]"
// @Param vendorID query int false "vendorID 全部传-1"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetManageState [get]
func (c *ReportController) GetManageState() {
c.callGetManageState(func(params *tReportGetManageStateParams) (retVal interface{}, errCode string, err error) {
var cityCodes []int
if err = jxutils.Strings2Objs(params.CityCodes, &cityCodes); err == nil {
retVal, err = report.GetManageState(params.Ctx, cityCodes, params.VendorID)
}
return retVal, "", err
})
}