推荐商品
This commit is contained in:
@@ -2120,3 +2120,7 @@ func ReCalculateJxPrice(ctx *jxcontext.Context, storeIDs []int) (err error) {
|
|||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (hint string, err error) {
|
||||||
|
return hint, err
|
||||||
|
}
|
||||||
|
|||||||
@@ -438,3 +438,20 @@ func (c *StoreSkuController) GetMissingStoreSkuFromOrder() {
|
|||||||
return retVal, "", err
|
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
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user