import request from './request'


export default {

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

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

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

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

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

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

}
