import {module} from '../module'; index.$inject = ['mgIndex']; function index(mgIndex) { return Object.assign({}, mgIndex, { init: 'index.filter={page: 1, size: 5}' }); } module.factory('vnIndex', index); nonAuto.$inject = ['mgIndex']; function nonAuto(mgIndex) { return Object.assign({}, mgIndex, { auto: false }); } module.factory('vnIndexNonAuto', nonAuto); successFactoryCreate.$inject = ['mgSuccessFactoryCreate']; function successFactoryCreate(create) { return Object.assign({}, create, { back: undefined }); } module.factory('vnSuccessFactoryCreate', successFactoryCreate); put.$inject = ['mgPut']; function put(mgPut) { return Object.assign({}, mgPut, { success: 'vnSuccessFactoryCreate' }); } module.factory('vnPut', put); put.$inject = ['mgPatch']; function patch(mgPatch) { return Object.assign({}, mgPatch, { success: 'vnSuccessFactoryCreate' }); } module.factory('vnPatch', patch); post.$inject = ['mgCreate']; function post(mgCreate) { return Object.assign({}, mgCreate, { as: 'post', success: 'vnSuccessFactoryCreate' }); } module.factory('vnPost', post);