import request from '@/utils/request'

// 查询电梯设备列表
export function listElevatorDevice(query) {
    return request({
        url: '/subsystem/elevator/device/list',
        method: 'get',
        params: query
    })
}

// 查询电梯运行记录列表
export function listElevatorRecord(query) {
    return request({
        url: '/subsystem/elevator/record/list',
        method: 'get',
        params: query
    })
}

// 查询电梯报警列表
export function listElevatorAlarm(query) {
    return request({
        url: '/subsystem/elevator/alarm/list',
        method: 'get',
        params: query
    })
}

// 处理电梯报警
export function handleElevatorAlarm(data) {
    return request({
        url: '/subsystem/elevator/alarm/handle',
        method: 'post',
        data: data
    })
}

// 获取电梯统计数据
export function getElevatorStatistics() {
    return request({
        url: '/subsystem/elevator/statistics',
        method: 'get'
    })
}

// 获取楼栋列表
export function getBuildingList() {
    return request({
        url: '/subsystem/common/building/list',
        method: 'get'
    })
}