This commit is contained in:
suyl
2021-05-12 17:22:44 +08:00
parent baffc6750f
commit 02c4ad310e
2 changed files with 8 additions and 6 deletions

View File

@@ -154,7 +154,7 @@ func (c *NetSpiderController) RefreshPageShops() {
// @Description 参考信息,商品搜索
// @Param token header string true "认证token"
// @Param vendorID query int false "平台ID"
// @Param vendorStoreID query string false "门店ID"
// @Param vendorStoreIDs query string false "门店ID"
// @Param keyword query string false "关键字"
// @Param lng query string false "关注点经度"
// @Param lat query string false "关注点纬度"
@@ -166,7 +166,9 @@ func (c *NetSpiderController) RefreshPageShops() {
// @router /QueryPageSkus [get]
func (c *NetSpiderController) QueryPageSkus() {
c.callQueryPageSkus(func(params *tNetspiderQueryPageSkusParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.QueryPageSkus(params.Ctx, params.VendorID, params.VendorStoreID, params.Keyword, utils.Str2Float64WithDefault(params.Lng, 0), utils.Str2Float64WithDefault(params.Lat, 0), params.Radius, params.Offset, params.PageSize)
var vendorStoreIDs []string
jxutils.Strings2Objs(params.VendorStoreIDs, &vendorStoreIDs)
retVal, err = cms.QueryPageSkus(params.Ctx, params.VendorID, vendorStoreIDs, params.Keyword, utils.Str2Float64WithDefault(params.Lng, 0), utils.Str2Float64WithDefault(params.Lat, 0), params.Radius, params.Offset, params.PageSize)
return retVal, "", err
})
}