查询门店价格评分

This commit is contained in:
苏尹岚
2019-12-06 17:21:42 +08:00
parent 5d556203fe
commit 0a6f7d6777
4 changed files with 108 additions and 5 deletions

View File

@@ -481,3 +481,40 @@ func (c *StoreSkuController) GetTopCategorysByStoreIDs() {
return retVal, "", err
})
}
// @Title 根据门店刷新中位价
// @Description 根据门店刷新中位价
// @Param token header string false "认证token"
// @Param storeIDs query string true "门店列表"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /RefershStoreSkusMidPrice [put]
func (c *StoreSkuController) RefershStoreSkusMidPrice() {
var storeIDList []int
c.callRefershStoreSkusMidPrice(func(params *tStoreSkuRefershStoreSkusMidPriceParams) (retVal interface{}, errCode string, err error) {
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
// cms.RefershStoreSkusMidPrice()
}
return retVal, "", err
})
}
// @Title 查询门店价格评分
// @Description 查询门店价格评分
// @Param token header string true "认证token"
// @Param storeIDs query string false "门店列表"
// @Param snapDate query string true "时间默认当天格式2006-01-02"
// @Param offset query int false "门店列表起始序号以0开始缺省为0"
// @Param pageSize query int false "门店列表页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetStorePriceScore [post]
func (c *StoreSkuController) GetStorePriceScore() {
var storeIDList []int
c.callGetStorePriceScore(func(params *tStoreSkuGetStorePriceScoreParams) (retVal interface{}, errCode string, err error) {
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
retVal, err = cms.GetStorePriceScore(params.Ctx, storeIDList, params.SnapDate,params.Offset, params.PageSize)
}
return retVal, "", err
})
}