const axios = require('axios');
export default {
    queryPageable(data, page, size, callback) {
        axios.post('/api/rules/parser/queryPageable/' + page + '/' + size, data).then((response) => {
            callback(response);
        })
    },
    deleteByIds(data, callback) {
        axios.post('/api/rules/parser/delete', data).then((response) => {
            callback(response);
        }).catch((error) => {
            console.log(error)
        })
    },
    update(data, callback) {
        axios.post('/api/rules/parser/update', data).then((response) => {
            callback(response);
        }).catch((error) => {
            console.log(error)
        })
    },
    add(data, callback) {
        axios.post('/api/rules/parser/add', data).then((response) => {
            callback(response);
        }).catch((error) => {
            console.log(error)
        })
    },

}