代码初始化
This commit is contained in:
79
src/api/light/lightPole.js
Normal file
79
src/api/light/lightPole.js
Normal file
@@ -0,0 +1,79 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询灯杆管理列表
|
||||
export function listLightPole(query) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询灯杆管理详细
|
||||
export function getLightPole(id) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增灯杆管理
|
||||
export function addLightPole(data) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改灯杆管理
|
||||
export function updateLightPole(data) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除灯杆管理
|
||||
export function delLightPole(id) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取灯杆下设备列表信息
|
||||
export function getLightDeviceList(id) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole/getLightDeviceList/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 批量转移灯杆管理
|
||||
export function batchUpdateBuilding({ ids, buildingId, buildingName }) {
|
||||
return request({
|
||||
url: `/smartlight/light/lightPole/batchUpdateBuilding/${ids}/${buildingId}/${buildingName}`,
|
||||
method: 'put'
|
||||
})
|
||||
}
|
||||
|
||||
// 导入模板下载
|
||||
export function importDownload(query) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole/exportUrl',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导入信息
|
||||
export function importData(data) {
|
||||
return request({
|
||||
url: '/smartlight/light/lightPole/importData',
|
||||
method: 'post',
|
||||
data,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user