salix/front/core/mocks/crud-model.js

31 lines
581 B
JavaScript
Raw Normal View History

module.exports = {
data: [],
filter: {},
order: {},
insert: () => {
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
remove: () => {
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
save: () => {
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
2018-10-31 13:56:54 +00:00
refresh: () => {},
addFilter: () => {},
applyFilter: () => {}
};