刷新京东等级

This commit is contained in:
苏尹岚
2019-12-16 18:38:48 +08:00
6 changed files with 92 additions and 3 deletions

View File

@@ -517,3 +517,21 @@ func (c *StoreSkuController) RefreshJxPriceByExcel() {
return retVal, "", err
})
}
// @Title 得到门店的分类列表
// @Description 得到门店的分类列表(按商品销量)
// @Param token header string false "认证token"
// @Param storeID query int true "门店ID"
// @Param parentID query int false "父分类id"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStoreCategories [get]
func (c *StoreSkuController) GetStoreCategories() {
c.callGetStoreCategories(func(params *tStoreSkuGetStoreCategoriesParams) (retVal interface{}, errCode string, err error) {
if params.MapData["parentID"] == nil {
params.ParentID = -1
}
retVal, err = cms.GetStoreCategories(params.Ctx, params.StoreID, params.ParentID)
return retVal, "", err
})
}