import createAxios from '@/utils/request'
// 查询游客配置
export const getVisitorConfig = () => {
    return createAxios({
        url: '/cs-device-boot/csTouristData/queryAll',
        method: 'POST'
    })
}

/**
 * 查询营销人员未选择的工程
 */
export const queryEnginnerByUseId = (data: any) => {
    return createAxios({
        url: '/cs-device-boot/csMarketData/queryEnginnerByUseId',
        method: 'post',
        params: data
    })
}
// 更新游客配置
export const updateVisitorConfig = (data: any) => {
    return createAxios({
        url: '/cs-device-boot/csTouristData/add',
        method: 'POST',
        data: data
    })
}

// * 根据用户获取营销数据
export const queryByUseId = (data: any) => {
    return createAxios({
        url: 'cs-device-boot/csMarketData/queryByUseId',
        method: 'POST',
        params: data
    })
}

// *  新增营销数据
export const add = (data: any) => {
    return createAxios({
        url: '/cs-device-boot/csMarketData/add',
        method: 'POST',
        data: data
    })
}
/**
 * 移除营销数据
 */
export const removeMarketData = (data: any) => {
    return createAxios({
        url: '/cs-device-boot/csMarketData/remove',
        method: 'post',
        params: data
    })
}

/**
 * 获取用户未绑定的在运的便携式设备
 */
export const queryRunPortableDevByUseId = (data: any) => {
    return createAxios({
        url: '/cs-device-boot/EquipmentDelivery/getRunPortableDev',
        method: 'post',
        params: data
    })
}

/**
 * 获取用户未绑定的工程信息
 */
export const queryUnlinkEngineeringByUseId = (data: any) => {
    return createAxios({
        url: '/cs-device-boot/engineering/getUnlinkedEngineering',
        method: 'post',
        params: data
    })
}