import request from '@/utils/request'

// 新增白名单
export function addWhiteAPI(data) {
    return request({
        url: '/smartPlatform/whitelist/add',
        method: 'POST',
        data: data,
    })
}

// 修改白名单
export function updateWhiteAPI(data) {
    return request({
        url: '/smartPlatform/whitelist/edit',
        method: 'POST',
        data: data,
    })
}

// 删除白名单
export function deleteWhiteAPI(data) {
    return request({
        url: '/smartPlatform/whitelist/del',
        method: 'POST',
        data: data,
    })
}

// 白名单列表
export function getWhiteListAPI(data) {
    return request({
        url: '/smartPlatform/whitelist/list',
        method: 'GET',
        params: data,
    })
}
