<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [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": "參數錯誤" } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看