import request from '@/router/axios';

export const getPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/warning/page',
        method: 'get',
        params: {
            current,
            size,
            ...params
        }
    })
}


export const getDetail = (params) => {
    return request({
        url: '/api/galaxy-business/rtu/warning/detail',
        method: 'get',
        params: {

            ...params
        }
    })
}








// 维修列表
export const getOrderList = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/page',
        method: 'get',
        params: {
            current,
            size,
            ...params
        }
    })
}

// 维修列表
export const getProcessList = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/process/page',
        method: 'get',
        params: {
            current,
            size,
            ...params
        }
    })
}


// 维修工单关闭
export const close = (params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/close',
        method: 'post',
        data: {
            ...params
        }
    })
}

export const remove = (params) => {
    return request({
        url: '/api/galaxy-business/rtu/check/order/close',
        method: 'post',
        data: {
            ...params
        }
    })
}


// 预警信息
export const getWrningInfo = (params) => {
    return request({
        url: '/api/galaxy-business/rtu/warning/page',
        method: 'post',
        data: {
            ...params
        }
    })
}


