[TOC=2]
## 分組列表
~~~[api]
get:/user_group/list
int:current_page=1#當前頁
int:page_number=10#頁碼
*int:user_id=1#用戶 id
int:parent_id=null#上級分組 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 4,
"name": "sss", // 分組名
"description": "", // 分組描述
"parent_id": null, // 上級分組 id
"create_time": "2019-01-09 09:32:44" // 創建時間
}
],
"current_page": 0, // 當前頁
"page_number": 0, // 頁碼
"total": 1 // 總條數
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 分配分組
~~~[api]
post:/user_group/save
*int:user_id=0#用戶 id
*int:parent_id=0#上級分組 id
*string:name=123#分組名稱
*string:description=123#分組描述
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 分組搜索
~~~[api]
get:/user_group/search
*string:search=123#搜索內容
*int:user_id=1#用戶 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 5, // 和列表數據解析一致
"name": "AA",
"description": "",
"parent_id": 4,
"create_time": "2019-01-11 14:53:05"
}
]
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 分組刪除
~~~[api]
post:/user_group/delete
*array:id_list=[1,2]#需要刪除的分組 id 數組
*int:user_id=1#用戶 id
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 在線數
~~~[api]
get:/online_statistics
*array:id_list=[1,2]#分組的 id 列表
*int:user_id=1#用戶 id
<<<
success
{
"code": 0,
"data": {
"null": {
"online": 0,
"total": 0
}
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 用戶下的設備
~~~[api]
get:/user_group/device
int:current_page=1#當前頁
int:page_number=10#頁碼
*int:user_id=1#用戶 id
int:parent_id=null#上級分組 id
<<<
success
{
"code": 0,
"data": {
"list": [],
"current_page": 0, // 當前頁
"page_number": 0, // 頁碼
"total": 0, // 總條數
"group_total": 0 // 總分組數 只包含一級分組
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 設備搜素
~~~[api]
get:/user_group/search_device
*string:search=123#搜素內容
*int:group_id=1#分組 id
*int:user_id=1#用戶 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 9,
"name": "水娃", // 設備名稱
"device_id": 3, // 設備 id
"group_id": 2, // 分組 id
"position": "會滅火", // 所在位置
"remark": "", // 備注信息
"create_time": "2019-01-08 10:40:17", // 添加時間
"sn": "740100094149", // 設備序號
"type": 29, // 設備類型
"subtype": 0 // 設備子類型
}
]
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
- 文檔說明
- 更新日志
- Web App 更新日志
- 自用云平臺
- 鑫源云平臺
- 生產管理
- 數據展示平臺
- 云平臺 - v3
- 設備文檔
- KP0C0 - 0 - 0
- KP3C2 - 6 - 1
- K5C2 - 13 - 0
- KP1C2 - 18 - 0
- KP2C4 - 21 - 0
- K5C6 - 25 - 0
- KP5C1 - 27 - 0
- KD5P1 - 29 - 0
- KD5P5 - 46 - 0
- KP1C3 - 47 - 0
- KP1C4 - 48 - 0
- KP1C5 - 49 - 0
- KD4P6 - 53 - 0
- KP3C2 - 65 - 0
- KD5P8 - 72 - 0
- KP2C7 - 75 - 0
- KD5P601 - 76 - 0
- KD5P11 - 79 - 0
- KP01C1510 - 87 - 0
- KP03C0100 - 88 - 0
- KP01C1520 - 90 - 0
- 上報字段
- 數據庫
- 登錄注冊
- 手機注冊
- 郵箱注冊
- 用戶名注冊
- 個人資料
- 管理功能
- 代理相關
- 代理設備
- 授權設備
- 代理功能
- 用戶相關
- 用戶設備
- 用戶分組
- 權限相關
- 設備功能
- 設備分組
- 設備接口
- 數據統計
- 數據統計V2
- 數據統計V3
- 彩云8000 - 數據統計
- 號段申請
- 數據庫
- 登錄注銷
- 申請用戶
- 申請記錄
- 用戶申請
- 文件上傳
- 生產管理
- 登錄注冊
- 提供接口