You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
3.1 KiB
169 lines
3.1 KiB
import request from "@/utils/request"; |
|
|
|
// 查询树形结构 |
|
export function spaceTree() { |
|
return request({ |
|
url: "/space/tree", |
|
method: "get", |
|
}); |
|
} |
|
export function floorTree() { |
|
return request({ |
|
url: "/space/floorTree", |
|
method: "get", |
|
}); |
|
} |
|
|
|
|
|
// 获取区域信息 |
|
export function getAreaList(query) { |
|
return request({ |
|
url: "/space/area/list", |
|
method: "get", |
|
params: query, |
|
}); |
|
} |
|
// 添加区域 |
|
export function addArea(data) { |
|
return request({ |
|
url: "/space/area", |
|
method: "post", |
|
data: data, |
|
}); |
|
} |
|
// 修改区域 |
|
export function updateArea(data) { |
|
return request({ |
|
url: "/space/area", |
|
method: "put", |
|
data: data, |
|
}); |
|
} |
|
// 根据id查询区域信息 |
|
export function getArea(areaId) { |
|
return request({ |
|
url: "/space/area/" + areaId, |
|
method: "get", |
|
}); |
|
} |
|
// 删除区域 |
|
export function delArea(areaIds) { |
|
return request({ |
|
url: "/space/area/" + areaIds, |
|
method: "delete", |
|
}); |
|
} |
|
// 获取楼栋信息 |
|
export function getBuildingList(query) { |
|
return request({ |
|
url: "/space/building/list", |
|
method: "get", |
|
params: query, |
|
}); |
|
} |
|
// 添加楼栋 |
|
export function addBuilding(data) { |
|
return request({ |
|
url: "/space/building", |
|
method: "post", |
|
data: data, |
|
}); |
|
} |
|
// 修改楼栋 |
|
export function updateBuilding(data) { |
|
return request({ |
|
url: "/space/building", |
|
method: "put", |
|
data: data, |
|
}); |
|
} |
|
// 根据id查询楼栋信息 |
|
export function getBuilding(buildingId) { |
|
return request({ |
|
url: "/space/building/" + buildingId, |
|
method: "get", |
|
}); |
|
} |
|
// 删除楼栋 |
|
export function delBuilding(buildingIds) { |
|
return request({ |
|
url: "/space/building/" + buildingIds, |
|
method: "delete", |
|
}); |
|
} |
|
// 获取楼层信息 |
|
export function getFloorList(query) { |
|
return request({ |
|
url: "/space/floor/list", |
|
method: "get", |
|
params: query, |
|
}); |
|
} |
|
// 添加楼层 |
|
export function addFloor(data) { |
|
return request({ |
|
url: "/space/floor", |
|
method: "post", |
|
data: data, |
|
}); |
|
} |
|
// 修改楼层 |
|
export function updateFloor(data) { |
|
return request({ |
|
url: "/space/floor", |
|
method: "put", |
|
data: data, |
|
}); |
|
} |
|
// 根据id查询楼层信息 |
|
export function getFloor(floorId) { |
|
return request({ |
|
url: "/space/floor/" + floorId, |
|
method: "get", |
|
}); |
|
} |
|
// 删除楼层 |
|
export function delFloor(floorIds) { |
|
return request({ |
|
url: "/space/floor/" + floorIds, |
|
method: "delete", |
|
}); |
|
} |
|
// 获取房间信息 |
|
export function getHouseList(query) { |
|
return request({ |
|
url: "/space/house/list", |
|
method: "get", |
|
params: query, |
|
}); |
|
} |
|
// 添加房间 |
|
export function addHouse(data) { |
|
return request({ |
|
url: "/space/house", |
|
method: "post", |
|
data: data, |
|
}); |
|
} |
|
// 修改房间 |
|
export function updateHouse(data) { |
|
return request({ |
|
url: "/space/house", |
|
method: "put", |
|
data: data, |
|
}); |
|
} |
|
// 根据id查询楼层信息 |
|
export function getHouse(houseId) { |
|
return request({ |
|
url: "/space/house/" + houseId, |
|
method: "get", |
|
}); |
|
} |
|
// 删除房间 |
|
export function delHouse(houseIds) { |
|
return request({ |
|
url: "/space/house/" + houseIds, |
|
method: "delete", |
|
}); |
|
}
|
|
|