代码合并

This commit is contained in:
BianLzhaoMin 2024-08-05 15:07:12 +08:00
parent 6eb8d87bfa
commit 82a91f2bd1
1 changed files with 84 additions and 1 deletions

View File

@ -40,3 +40,86 @@ export function deleteDeviceApi(id) {
}) })
} }
/**
* *****
*/
// 新增或修改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,
})
}