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

38 lines
725 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}});
}
};
},
2019-04-30 07:19:40 +00:00
on: () => {
return {
then: callback => {
callback({data: {id: 1234}});
}
};
},
2018-10-31 13:56:54 +00:00
refresh: () => {},
addFilter: () => {},
2019-04-30 07:19:40 +00:00
applyFilter: () => {},
};