获取服务员/技师列表
javascript
WXAPI.userAttendantList({
page: 1
})
- page 获取第几页数据,不传该参数默认为1
- pageSize 每页获取几条记录,不传该参数默认为50
- shopId 门店/商家ID
- curlatitude 当前用户的维度
- curlongitude 当前用户的经度
- gender 性别:0 未知 1 男性 2 女性
- ageMin 最小年龄
- ageMax 最大年龄
- status 0 上班;1 休息
- cityId 获取指定城市的技师
- shopCityId 根据绑定的门店所属城市筛选
- provinceId 所在省份ID
- cityId 所在城市ID
- districtId 所在区县ID
- streetId 所在街道ID
- constellation 星座
- showShopInfo 是否返回门店数据
- radius 搜索定位半径,单位是 KM
- constellation 星座
- orderBy 不传按推荐排序,ordersDown 销量降序,reputationDesc 按好评数排序, useful 点赞高的在前面, zcAsc 职称从小到大, zcDesc 职称从大到小
如果传了当前位置的经纬度信息,则只会返回距离该位置10公里范围内的服务员/技师
json
{
"code": 0,
"data": {
"result": [
{
"distance": 9.6876,
"id": 2920373,
"jobNumber": "818",
"numberGoodReputation": 0,
"numberReputation": 0,
"picShow": "https://dcdn.it120.cc/2022/04/18/8462a78a-022d-4992-b193-2149868b0e10.jpg",
"shopId": 45154,
"similarRate": 100,
"tags": "可爱,技术很好"
}
],
"totalRow": 1,
"totalPage": 1
},
"msg": "success"
}
- distance 距离,单位为 KM
- id 用户编号
- jobNumber 工号
- numberGoodReputation 好评数
- numberReputation 总共评价次数
- picShow 头像
- shopId 绑定的门店/商家ID
- similarRate 照片和真人的相似度
- tags 服务标签