推荐商品

This commit is contained in:
苏尹岚
2019-12-03 09:18:31 +08:00
parent 33fbbf7192
commit 0c55b76bf1
2 changed files with 21 additions and 0 deletions

View File

@@ -2120,3 +2120,7 @@ func ReCalculateJxPrice(ctx *jxcontext.Context, storeIDs []int) (err error) {
}
return err
}
func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (hint string, err error) {
return hint, err
}

View File

@@ -438,3 +438,20 @@ func (c *StoreSkuController) GetMissingStoreSkuFromOrder() {
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 /GetTopSkusByStoreIDs [get]
func (c *StoreSkuController) GetTopSkusByStoreIDs() {
var storeIDList []int
c.callGetTopSkusByStoreIDs(func(params *tStoreSkuGetTopSkusByStoreIDsParams) (retVal interface{}, errCode string, err error) {
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
retVal, err = cms.GetTopSkusByStoreIDs(params.Ctx, storeIDList)
}
return retVal, "", err
})
}