import request from './request'


export default {

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

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

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

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

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

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

}
