推荐分类
This commit is contained in:
@@ -455,3 +455,20 @@ func (c *StoreSkuController) GetTopSkusByStoreIDs() {
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 根据门店信息查找推荐分类(按商品销量)
|
||||
// @Description 根据门店信息查找推荐分类(按商品销量)
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs query string true "门店列表"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetTopCategorysByStoreIDs [get]
|
||||
func (c *StoreSkuController) GetTopCategorysByStoreIDs() {
|
||||
var storeIDList []int
|
||||
c.callGetTopCategorysByStoreIDs(func(params *tStoreSkuGetTopCategorysByStoreIDsParams) (retVal interface{}, errCode string, err error) {
|
||||
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
|
||||
retVal, err = cms.GetTopCategorysByStoreIDs(params.Ctx, storeIDList)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user