This commit is contained in:
suyl
2021-05-12 16:05:16 +08:00
parent 0bc913e993
commit b00882859f
3 changed files with 138 additions and 4 deletions

View File

@@ -149,3 +149,23 @@ func (c *NetSpiderController) RefreshPageShops() {
return retVal, "", err
})
}
// @Title 参考信息,商品搜索
// @Description 参考信息,商品搜索
// @Param token header string true "认证token"
// @Param vendorID query int false "平台ID"
// @Param keyword query string false "关键字"
// @Param lng query string false "关注点经度"
// @Param lat query string false "关注点纬度"
// @Param radius query int false "半径(米)"
// @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 /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.Keyword, utils.Str2Float64(params.Lng), utils.Str2Float64(params.Lat), params.Radius, params.Offset, params.PageSize)
return retVal, "", err
})
}