import request from '../libs/request';

const res = 'MovePlan';

export default {
    save(data) {
        return request({
            url: `api/${res}/save`,
            method: 'save',
            data
        });
    },
    submit(data) {
        return request({
            url: `api/${res}/submit`,
            method: 'post',
            data
        });
    },
    cancel(id) {
        return request({
            url: `api/${res}/cancel`,
            method: 'post',
            data: {
                id
            }
        });
    }
};
