import createAxios from '@/utils/request'

/**
 * 发起监测点试运行
 */
export const addRunTest = (data: any) => {
    return createAxios({
        url: '/supervision-boot/supervisionTempLineRunTest/add',
        method: 'POST',
        data: data
    })
}
export const update = (data: any) => {
    return createAxios({
        url: '/supervision-boot/supervisionTempLineRunTest/update',
        method: 'POST',
        data: data
    })
}
export const cancel = (data: any) => {
    return createAxios({
        url: '/supervision-boot/supervisionTempLineRunTest/cancel',
        method: 'POST',
        data: data
    })
}

export const getRunTestById = (id: string) => {
    return createAxios({
        url: '/supervision-boot/supervisionTempLineRunTest/getRunTestById?id=' + id,
        method: 'get'
    })
}
export const initiateWarningLeaflet = (data: any) => {
    return createAxios({
        url: '/supervision-boot/lineRunTestProblem/initiateWarningLeaflet',
        method: 'POST',
        data
    })
}
