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, + }) +}