门店促销指数
This commit is contained in:
@@ -589,20 +589,23 @@ func (c *StoreController) GetVendorStoreInfo() {
|
||||
// @Description 查询门店价格评分
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeIDs formData string false "门店列表"
|
||||
// @Param vendorIDs formData string false "厂商列表"
|
||||
// @Param snapDate formData string true "时间,默认前一天(格式2006-01-02"
|
||||
// @Param fromScore formData int false "分数范围开始 默认0"
|
||||
// @Param toScore formData int false "分数范围结束 默认100"
|
||||
// @Param sort formData int false "排序,默认降序,0为降序,1为升序"
|
||||
// @Param sort formData int false "分数排序,默认降序,0为降序,1为升序,-1为忽略"
|
||||
// @Param directSort formData int false "直降排序,默认降序,0为降序,1为升序,-1为忽略"
|
||||
// @Param secKillSort formData int false "秒杀排序,默认降序,0为降序,1为升序,-1为忽略"
|
||||
// @Param offset formData int false "门店列表起始序号(以0开始,缺省为0)"
|
||||
// @Param pageSize formData int false "门店列表页大小(缺省为50,-1表示全部)"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetStorePriceScore [post]
|
||||
func (c *StoreController) GetStorePriceScore() {
|
||||
var storeIDList []int
|
||||
var storeIDList, vendorIDList []int
|
||||
c.callGetStorePriceScore(func(params *tStoreGetStorePriceScoreParams) (retVal interface{}, errCode string, err error) {
|
||||
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList); err == nil {
|
||||
retVal, err = cms.GetStorePriceScore(params.Ctx, storeIDList, params.FromScore, params.ToScore, params.Sort, params.SnapDate, params.Offset, params.PageSize)
|
||||
if jxutils.Strings2Objs(params.StoreIDs, &storeIDList, params.VendorIDs, &vendorIDList); err == nil {
|
||||
retVal, err = cms.GetStorePriceScore(params.Ctx, storeIDList, vendorIDList, params.FromScore, params.ToScore, params.Sort, params.DirectSort, params.SecKillSort, params.SnapDate, params.Offset, params.PageSize)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user