[TOC=2]
## 設備列表
~~~[api]
get:/device/list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 34,
"name": "", // 設備名稱
"device_id": 11, // 設備 id
"group_id": null, // 分組 id
"position": "", // 所在位置
"remark": "", // 備注信息
"create_time": "2019-01-16 09:21:15", // 添加時間
"sn": "741500000011", // 設備序號
"type": 46, // 設備類型
"subtype": 0, // 設備子類型
"group_name": null // 所在分組名
}
],
"current_page": 1, // 當前頁
"page_number": 10, // 頁碼
"total": 1 // 總條數
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 類型區分
~~~[api]
get:/device/type_list
int:current_page=1#當前頁
int:page_number=10#頁碼
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 34,
"name": "", // 設備名稱
"device_id": 11, // 設備 id
"group_id": null, // 分組 id
"position": "", // 所在位置
"remark": "", // 備注信息
"create_time": "2019-01-16 09:21:15", // 添加時間
"sn": "741500000011", // 設備序號
"type": 46, // 設備類型
"subtype": 0, // 設備子類型
"group_name": null // 所在分組名
}
],
"current_page": 1, // 當前頁
"page_number": 10, // 頁碼
"total": 1 // 總條數
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 設備添加
~~~[api]
post:/device/save
*string:sn=111111111111#設備序列號
*int:password=123456#設備密碼 無需加密
string:name=123456#設備名稱
string:position=11#所在位置
string:remark=11#備注信息
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 批量在線
~~~[api]
post:/device/save_batch
*string:start_sn=111111111111#開始號段
*string:end_sn=111111111111#結束號段
*int:password=123456#密碼
string:name=123456#設備名稱
string:position=11#所在位置
string:remark=11#備注信息
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 批量離線
~~~[api]
post:/device/save_batch_offline
*string:start_sn=111111111111#開始號段
*string:end_sn=111111111111#結束號段
*int:password=123456#密碼
*int:type=29#設備類型
*int:subtype=0#設備子類型
string:name=123456#設備名稱
string:position=11#所在位置
string:remark=11#備注信息
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 刪除設備
~~~[api]
post:/device/delete
*array:id_list=[1,2]#id 數組
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 更新設備
~~~[api]
post:/device/update
*array:device_list=[]#修改的數據組
<<<
consult
[
"id":1
"name":123,
"position":"123",
"remark":"123"
]
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 設備搜索
~~~[api]
get:/device/search
*string:search=1#搜索內容
<<<
success
{
"code": 0,
"data": {
"list": [
{
"id": 34,
"name": "", // 設備名稱
"device_id": 11, // 設備 id
"group_id": null, // 分組 id
"position": "", // 所在位置
"remark": "", // 備注信息
"create_time": "2019-01-16 09:21:15", // 添加時間
"sn": "741500000011", // 設備序號
"type": 46, // 設備類型
"subtype": 0, // 設備子類型
"group_name": null // 所在分組名
}
]
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 修改密碼
~~~[api]
post:/device/update_pwd
*int:id=1#列表 id
*int:password=123456#原密碼
*int:password_new=123456#新密碼
*string:sn=111111111111#設備序號
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 在線統計
~~~[api]
get:/device/online_statistics
<<<
success
{
"code": 0,
"data": {
"online_num": 4, // 在線數
"offline_num": 8, // 離線數
"standby_num": 1, // 待機數
"run_num": 2, // 運行數
"total": 12 // 設備總數
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 離線序號
~~~[api]
get:/device/get_offline_device
<<<
success
{
"code": 0, // 字段和在線統計一致,只不過返回的是 sn 號碼
"data": {
"offline_device": [
{
"sn": "748000002085"
}
],
"online_device": [
{
"sn": "741500000011"
}
],
"standby_device": [
{
"sn": "741100000011"
}
],
"run_device": [
{
"sn": "741500000011"
}
]
}
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 導出數據
~~~[api]
get:/device/export
int:user_id=0# 用戶 id 默認自己的設備
<<<
success
{
"code": 0
}
<<<
error
{
"code": -1,
"msg": "參數錯誤"
}
~~~
## 導入數據
~~~[api]
post:/device/upload
int:user_id=0#用戶 id 導入到用戶 填
<<<
success
{
"code": 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 - 數據統計
- 號段申請
- 數據庫
- 登錄注銷
- 申請用戶
- 申請記錄
- 用戶申請
- 文件上傳
- 生產管理
- 登錄注冊
- 提供接口