[TOC=2]
## 分組列表
~~~[api]
get:/device_group/list
int:current_page=1#當前頁
int:page_number=10#頁碼
int:parent_id=0#上級分組 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 7,
"name": "測試A組", // 分組名
"description": "", // 分組描述
"parent_id": null, // 上級 id
"create_time": "2019-01-18 09:39:28" // 創建時間
}
],
"current_page": 1, // 當前頁
"page_number": 10, // 頁碼
"total": 1 // 總條數
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 新增分組
~~~[api]
post:/device_group/save
int:id=0# 填 id 更新 不填 id 新增
*string:name=11#分組名
string:description=描述#描述
int:parent_id=0#上級分組 id
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 刪除分組
~~~[api]
post:/device_group/delete
*array:id_list=[1]#刪除分組
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 搜索分組
~~~[api]
get:/device_group/search
*string:search=123#搜索內容
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 1,
"name": "測試1組",
"description": "",
"parent_id": null,
"create_time": "2019-01-08 10:13:17"
}
]
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 分組設備
~~~[api]
get:/device_group/device
*int:id=0#分組 id
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 29,
"name": "12", // 設備名稱
"device_id": 1, // 設備 id
"group_id": null, // 分組 id
"position": "", // 所在位置
"remark": "", // 備注信息
"create_time": "2019-01-09 14:10:26", // 添加時間
"sn": "748000010037", // 設備序號
"type": 53, // 設備類型
"subtype": 0 // 設備子類型
}
],
"current_page": 0, // 當前頁
"page_number": 0, // 頁碼
"total": 1, // 總條數
"group_total": 2 // 下級分組數
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 切換分組
~~~[api]
get:/device_group/change_group
*array:id_list=[1,2]#設備列表的 id 數組
*int:group_id=0#目標分組 id
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 搜索設備
~~~[api]
get:/device_group/search_device
*string:search=123#搜索內容
*int:group_id=0#分組 id
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 1,
"name": "12",
"device_id": 1,
"group_id": null,
"position": "12",
"remark": "12",
"create_time": "2019-01-07 09:22:49",
"sn": "748000010037",
"type": 53,
"subtype": 0
}
]
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 在線數量
~~~[api]
get:/device_group/online_statistics
array:id_list=[1,2]#設備分組 id 數組
<<<
success
{
"code": 0,
"data": {
"null": { // 分組 id
"online": 3, // 在線數
"total": 4 // 總設備數
}
}
}
<<<
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 - 數據統計
- 號段申請
- 數據庫
- 登錄注銷
- 申請用戶
- 申請記錄
- 用戶申請
- 文件上傳
- 生產管理
- 登錄注冊
- 提供接口