2017-02-21 10:36:43 +00:00
|
|
|
import {module} from '../module';
|
|
|
|
|
|
|
|
index.$inject = ['mgIndex'];
|
|
|
|
function index(mgIndex) {
|
2017-02-24 12:03:23 +00:00
|
|
|
return Object.assign({}, mgIndex, {
|
2017-02-21 10:36:43 +00:00
|
|
|
init: 'index.filter={page: 1, size: 4}'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
module.factory('vnIndex', index);
|
|
|
|
|
|
|
|
successFactoryCreate.$inject = ['mgSuccessFactoryCreate'];
|
|
|
|
function successFactoryCreate(create) {
|
2017-02-24 12:03:23 +00:00
|
|
|
return Object.assign({}, create, {
|
2017-02-21 10:36:43 +00:00
|
|
|
back: undefined
|
|
|
|
});
|
|
|
|
}
|
|
|
|
module.factory('vnSuccessFactoryCreate', successFactoryCreate);
|
|
|
|
|
|
|
|
put.$inject = ['mgPut'];
|
|
|
|
function put(mgPut) {
|
2017-02-24 12:03:23 +00:00
|
|
|
return Object.assign({}, mgPut, {
|
2017-02-21 10:36:43 +00:00
|
|
|
success: 'vnSuccessFactoryCreate'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
module.factory('vnPut', put);
|
|
|
|
|
|
|
|
post.$inject = ['mgCreate'];
|
|
|
|
function post(mgCreate) {
|
2017-02-24 12:03:23 +00:00
|
|
|
return Object.assign({}, mgCreate, {
|
2017-02-21 15:21:55 +00:00
|
|
|
as: 'post',
|
2017-02-21 10:36:43 +00:00
|
|
|
success: 'vnSuccessFactoryCreate'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
module.factory('vnPost', post);
|