文档
测试

搜索功能

POST
http://localhost/index/search

接口描述

搜索功能

请求参数

参数名
类型
描述
必填
current
int
当前页
必填
size
int
每页数显示
必填
type
int
类型 1 商品搜索 2-服务人员搜索
必填
searchValue
string
搜索内容
必填
latitude
string
坐标
必填
longitude
string
坐标
必填

说明 / 示例

搜索主要分两个类型,返回的字段含义也不一样 type == 1 商品搜索 id 商品id name 商品名称 image 图片 listDesc 简短描述 price 原价 vipPrice vip价格 vipDiscount vip折扣 goodRate 好评率 alreadyNum 已售订单数 type == 2 服务人员 id 服务人员id name 名称 image 头像 latitude 坐标 longitude 坐标 distance 距离 orderNum 已接订单数 sexShow 性别