Files
jsowell-charger-web/doc/万车充接口补充.md

105 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 首页站点筛选
```
接口地址:
请求方式:
```
**入参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ------ | ---- | -------- | ---- |
| | | | |
**反参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ------ | ---- | -------- | ---- |
| | | | |
# 首页站点列表
```
接口地址:/uniapp/pile/queryStationInfos
```
**加字段:**当前站点最近充电的一次时间
**加字段:**异常设备数量
# 站点详情枪口信息
```
接口地址uniapp/pile/selectStationConnectorList
```
**实现:**根据前端传入的枪口状态参数,动态返回匹配的实时数据信息,实现状态与数据的精准响应。
# 查询站点收藏
```
接口地址:/uniapp/member/getCollectedStationIdList
请求方式POST
```
**入参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ---------- | ------ | -------- | ------------ |
| memberId | String | Y | 存在Header中 |
| stationLng | String | Y | 当前位置经度 |
| stationLat | String | N | 当前位置纬度 |
**反参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ------ | ---- | -------- | ---- |
| | | | |
# (添加/删除) 站点收藏
```
接口地址:/uniapp/member/updateCollectedStation
请求方式POST
```
**入参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ------------ | ------- | -------- | ----------------------------------------- |
| memberId | String | Y | 存在Header中 |
| stationId | String | Y | 站点id |
| operatorType | Boolean | Y | 操作类型true-添加收藏false-取消收藏) |
**反参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ------ | ---- | -------- | ---- |
| | | | |
# 查询用户常去站点(最近半年)
```text
接口地址:/uniapp/member/getUserFrequentedStationList
请求方式GET
```
### **入参**
| 字段名 | 类型 | 是否必传 | 备注 |
| -------- | ------ | -------- | ------ |
| memberId | String | Y | 会员id |
### **反参**
| 字段名 | 类型 | 是否必传 | 备注 |
| ------------------------------- | ------------------------- | -------- | ------------------------ |
| List<UserFrequentedStationInfo> | UserFrequentedStationInfo | Y | 按照充电次数从高到低排序 |
#### UserFrequentedStationInfo
| 字段名 | 类型 | 是否必传 | 备注 |
| ----------- | ------ | -------- | -------- |
| stationId | String | Y | 站点id |
| stationName | String | Y | 站点名称 |
| chargeNum | int | Y | 充电次数 |