import request from '@/router/axios';


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

export const todayInspectionReportList = (data) => {
    return request({
        url: '/api/galaxy-business/equipment/inspection/report/today/list',
        method: 'get',
        params: data,
    })
}


export const todayInspectionReportPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/equipment/inspection/report/today/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}


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

export const update = (row) => {
    return request({
        url: '/api/galaxy-business/equipment/inspection/report/update',
        method: 'post',
        data: row
    })
}

export const nonetworksignalPhotoUpdate = (row) => {
    return request({
        url: '/api/galaxy-business/equipment/inspection/report/nonetworksignal/photo/update',
        method: 'post',
        data: row
    })
}



export const closeNonetworksignalPhotoSubmit = (params) => {
    return request({
        url: '/api/galaxy-business/equipment/inspection/report/nonetworksignal/close',
        method: 'post',
        data: params
    })
}
