import request from '@/utils/request'

// 新增程序版本
export const addEdData = data => {
    return request({
        url: '/cs-device-boot/edData/addEdData',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: data
    })
}

export const auditEdData = data => {
    return request({
        url: '/cs-device-boot/edData/auditEdData',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data: data
    })
}
// 修改-删除工程
export const auditEngineering = (data: any) => {
    return request({
        url: '/cs-device-boot/engineering/auditEngineering',
        method: 'post',
        data: data
    })
}
// 修改项目
export const updateProject = (data: any) => {
    return request({
        url: '/cs-device-boot/project/updateProject',
        method: 'post',

        data: data
    })
}
// 新增工程
export const addEngineering = (data: any) => {
    return request({
        url: '/cs-device-boot/engineeringProjectRelation/addEngineering',
        method: 'post',
        data: data
    })
}
// 修改工程
export const updateEngineering = (data: any) => {
    return request({
        url: '/cs-device-boot/engineeringProjectRelation/updateEngineering',
        method: 'post',
        data: data
    })
}
// 刪除工程
export const deleteEngineering = (data: any) => {
    return request({
        url: '/cs-device-boot/engineeringProjectRelation/deleteEngineering',
        method: 'post',
        params: data
    })
}
// 刪除項目
export const deleteProject = (data: any) => {
    return request({
        url: '/cs-device-boot/engineeringProjectRelation/deleteProject',
        method: 'post',
        params: data
    })
}
// 新增项目
export const addProject = (data: any) => {
    return request({
        url: '/cs-device-boot/engineeringProjectRelation/addProject',
        method: 'post',
        data: data
    })
}
// 修改项目
export const updateProjects = (data: any) => {
    return request({
        url: '/cs-device-boot/engineeringProjectRelation/updateProject',
        method: 'post',
        data: data
    })
}

