import request from '@/utils/request'

// 项目查询
export const queryProject = (data) => {
    return request({
        url: '/cs-device-boot/project/queryProject',
        method: 'post',
        data: Object.assign(
            {
                pageNum: 1,
                endTime: '',
                pageSize: {},
                projectId: '',
                searchValue: '',
                startTime: '',
            },
            data
        ),
    })
}

// 新增项目
export const addAppProject = (form) => {
    return request({
        url: '/cs-device-boot/project/addAppProject',
        method: 'post',
        headers: {
            'Content-Type': 'multipart/form-data',
        },
        data: form,
    })
}

// 删除项目

export const deleteProject = (id) => {
    return request({
        url: '/cs-device-boot/project/auditAppProject',
        method: 'post',
        data: {
            id,
            status: 0,
        },
    })
}
// 删除项目
export const updateProject = (data) => {
    return request({
        url: '/cs-device-boot/project/auditAppProject',
        method: 'post',
        data: data,
    })
}
