在线列表刷新逻辑
All checks were successful
构建并部署 Spring Boot 应用 / build-and-deploy (push) Successful in 15m20s

This commit is contained in:
2025-10-19 15:59:05 +08:00
parent 272c674b4a
commit 6e89255f1e
5 changed files with 141 additions and 9 deletions

View File

@@ -425,6 +425,66 @@ deploy.bat
}
```
## API接口响应格式
### 用户签到接口 `/user/signin`
#### 请求参数
- Method: `POST`
- Headers: `Authorization: Bearer <token>`
- Body:
```json
{
"latitude": 25.0342,
"longitude": 102.7057,
"timestamp": 1634567890000
}
```
#### 成功响应
```json
{
"success": true,
"userInfo": {
"id": 123,
"name": "张三",
"phone": "13800138000",
"role": "DELIVERY_PERSON",
"openid": "oK4fS5ABCDEF123456"
}
}
```
#### 失败响应
```json
{
"success": false,
"message": "错误信息"
}
```
### 用户签退接口 `/user/signout`
#### 请求参数
- Method: `POST`
- Headers: `Authorization: Bearer <token>`
#### 成功响应
```json
{
"success": true,
"message": "签退成功"
}
```
#### 失败响应
```json
{
"success": false,
"message": "错误信息"
}
```
## 最近更新
### WebSocket使用方式变更重要变更