From 82a91f2bd1a5e7d48b5e470f44017d04fdd536e1 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 5 Aug 2024 15:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/api/iotDevice/index.js | 85 +++++++++++++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/sgzb-ui/src/api/iotDevice/index.js b/sgzb-ui/src/api/iotDevice/index.js index 357c87cf..4c4003cf 100644 --- a/sgzb-ui/src/api/iotDevice/index.js +++ b/sgzb-ui/src/api/iotDevice/index.js @@ -39,4 +39,87 @@ export function deleteDeviceApi(id) { method: 'delete', }) -} \ No newline at end of file +} + +/** + * ***** + */ +// 新增或修改IOT +export function addOrUpdate(data) { + return request({ + url: '/material/iotMachine/addOrUpdate', + method: 'post', + data, + }) +} + +// IOT列表 +export function getIotList(params = {}) { + return request({ + url: '/material/iotMachine/getIotList', + method: 'get', + params, + }) +} + +// 删除IOT /iotMachine/deleteById/{iotId} +export function deleteIotById(params) { + return request({ + url: '/material/iotMachine/deleteById/' + params, + method: 'delete', + }) +} + +// IOT下拉列表 /iotMachine/selectList +export function selectList(params = {}) { + return request({ + url: '/material/iotMachine/selectList', + method: 'get', + params, + }) +} + +// 绑定IOT /iotMachine/bind +export function bindIot(data) { + return request({ + url: '/material/iotMachine/bind', + method: 'post', + data, + }) +} + +// 解绑IOT /iotMachine/unbind +export function unbindIot(data) { + return request({ + url: '/material/iotMachine/unbind', + method: 'post', + data, + }) +} + +// 获取绑定IOT列表 /iotMachine/getTypeList +export function getTypeList(params = {}) { + return request({ + url: '/material/iotMachine/getTypeList', + method: 'get', + params, + }) +} + +// 绑定详情 /iotMachine/getRecordList +export function getRecordList(params = {}) { + return request({ + url: '/material/iotMachine/getRecordList', + method: 'get', + params, + }) +} + +// 所有绑定详情 /iotMachine/getRecordListAll +export function getRecordListAll(params = {}) { + return request({ + url: '/material/iotMachine/getRecordListAll', + method: 'get', + params, + }) +}