附近学校列表
按经纬度或学校名查附近学校,校园团购选学校、填校区时使用。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/user/nearSchool |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
lat | Double | 否 | URL 参数 |
lon | Double | 否 | URL 参数 |
schoolName | String | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/user/nearSchool?lat=xxx&lon=xxx&schoolName=xxx' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为数组,每项结构见下方字段说明。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": [
{
"id": 1,
"lat": 0.0,
"lon": 0.0,
"schoolName": "string",
"province": "string",
"city": "string",
"address": "string",
"chsiSchId": 1,
"orgCode": "string",
"sdxUnivId": 1,
"collegeId": 1,
"contractUserId": 1,
"presaleWarehouseId": 1,
"booklistCurl": "string",
"booklistScript": "string",
"booklistParamNames": "string",
"areaId": 1,
"supportLocalRecycle": 1,
"priceCoefficient": 0.0,
"carbonTon": 0.0,
"carbonRank": 1,
"carbonRecycleCount": 1,
"carbonSoldCount": 1,
"carbonTonMonth": 0.0,
"carbonRankMonth": 1,
"carbonRecycleCountMonth": 1,
"carbonSoldCountMonth": 1,
"carbonTonWeek": 0.0,
"carbonRankWeek": 1,
"carbonRecycleCountWeek": 1,
"carbonSoldCountWeek": 1,
"carbonStatTime": "string"
}
]
}