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 getOfflinePage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/rtu/warning/offline/page',
        method: 'get',
        params: {
            current,
            size,
            ...params
        }
    })
}

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

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


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

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

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

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

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

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


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

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

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

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

export const submitSetting = (data) => {
    return request({
        url: '/api/galaxy-business/rtu/warning/setting/submit',
        method: 'post',
        data: data
    })
}


