接口
https://www.jiulinghu.com/api/health
用户登录
地址
/login
方法
post
请求示例
{
"mobile": "15195552118",
"code": "820123"
}
响应示例
{
"jsonrpc": "2.0",
"id": null,
"result": {
"errCode": 0,
"errMsg": "登录成功",
"data": {
"user_id": 14,
"name": "手机用户7688",
"login": "15195552118",
"image_1920": "http://www.jiulinghu.com/public/image/res.users/14/image_1920",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxNCwibG9naW4iOiIxNTE5NTU1MjExOCIsImV4cCI6MTc2NDIzNDkwNSwiaWF0IjoxNzYzNjMwMTA1LCJpc3MiOiJvZG9vX2p3dF9hdXRoIiwiYXVkIjoiYXBwX2NsaWVudCJ9.nMc1C-3R4LZUQOj6oCIEvP8_Y8o-ea5ghc-nnKgp0zw",
"expires": "2025-11-27 09:15:05"
}
}
}
请求
| 名称 | 描述 | 类型 | 示例 | 必填 |
|---|---|---|---|---|
| mobile | 手机 | Char | 15195552118 | True |
| code | 验证码 | Char | 820123 | True |
响应
| 名称 | 描述 | 示例 | 备注 |
|---|---|---|---|
| user_id | 用户ID | 14 | |
| name | 名称 | 手机用户7688 | |
| login | 登录(手机号) | 15195552118 | |
| token | 令牌 | eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..GTO48BX2qawfZz7ymzA1FyT_KiMH_HBPBDvNna_RcQo" | |
| expires | 过期时间 | 2025-11-21 10:28:31 | |
| image_1920 | 头像 | http://www.jiulinghu.com/public/image/res.users/14/image_1920 |
-
设备
地址
/my/device
方法
post
请求示例
{}
响应示例
{
"jsonrpc": "2.0",
"id": null,
"result": {
"errCode": 0,
"errMsg": "查询成功",
"data": [
{
"id": 4,
"name": "设备01",
"category_id": {
"id": 1,
"name": "运动手表"
},
"status": {
"option": "online",
"name": "在线"
},
"last_sync": "2025-11-04 14:00:00"
},
{
"id": 5,
"name": "设备02",
"category_id": {
"id": 1,
"name": "运动手表"
},
"status": {
"option": "online",
"name": "在线"
},
"last_sync": "2025-11-08 11:00:00"
}
]
}
}
请求
| 名称 | 描述 | 类型 | 示例 | 必填 |
|---|
响应
| 名称 | 描述 | 示例 | 备注 |
|---|---|---|---|
| id | ID | 1 | |
| name | 名称 | 设备01 | |
| category_id | 类别 | {"id": 1, "name": "运动手表"} | |
| status | 状态 | {"option": "online", "name": "在线"} | |
| last_sync | 最后同步 | 2025-11-04 14:00:00 |
-