import createAxios from '@/utils/request'

// * 根据用户id查询工程和便携式设备
export const queryDevByUseId = (data: any) => {
    return createAxios({
        url: '/cs-system-boot/wlUser/selectDevByUserId',
        method: 'POST',
        params: data
    })
}

// *  用户绑定工程和便携式设备
export const add = (data: any) => {
    return createAxios({
        url: '/cs-system-boot/wlUser/addUserDev',
        method: 'POST',
        data: data
    })
}
/**
 * 用户取消绑定工程和便携式设备
 */
export const removeUserDev = (data: any) => {
    return createAxios({
        url: '/cs-system-boot/wlUser/deleteUserDev',
        method: 'post',
        data: data
    })
}
/**
 * 短信配置
 */
export const addUserDevices = (data: any) => {
    return createAxios({
        url: '/cs-system-boot/appMsgSet/addUserDevices',
        method: 'post',
        data: data
    })
}
/**
 * 短信配置
 */
export const queryDeviceIdsByUserId = (data: any) => {
    return createAxios({
        url: '/cs-system-boot/appMsgSet/queryDeviceIdsByUserId',
        method: 'post',
        params: data
    })
}
