import request from './request'


export default {

    add(data) {
        return request({
            url: '/white_list/add',
            method: 'post',
            data
        });
    },

    query(data) {
        return request({
            url: '/white_list/query',
            method: 'post',
            data
        });
    },

    update(data) {
        return request({
            url: '/white_list/update',
            method: 'put',
            data
        });
    },

    delete(data) {
        return request({
            url: '/white_list/delete',
            method: 'delete',
            data
        });
    },

    deleteBatch(data) {
        return request({
            url: '/white_list/delete_batch',
            method: 'delete',  
            data
        });
    },

    importBatch(data) {
        return request({
            url: '/white_list/import_batch',
            method: 'post',  
            data
        });
    }

}
