34 lines
796 B
JavaScript
34 lines
796 B
JavaScript
|
import {module} from '../module';
|
||
|
|
||
|
index.$inject = ['mgIndex'];
|
||
|
function index(mgIndex) {
|
||
|
return angular.extend(mgIndex, {
|
||
|
init: 'index.filter={page: 1, size: 4}'
|
||
|
});
|
||
|
}
|
||
|
module.factory('vnIndex', index);
|
||
|
|
||
|
successFactoryCreate.$inject = ['mgSuccessFactoryCreate'];
|
||
|
function successFactoryCreate(create) {
|
||
|
return angular.extend(create, {
|
||
|
back: undefined
|
||
|
});
|
||
|
}
|
||
|
module.factory('vnSuccessFactoryCreate', successFactoryCreate);
|
||
|
|
||
|
put.$inject = ['mgPut'];
|
||
|
function put(mgPut) {
|
||
|
return angular.extend(mgPut, {
|
||
|
success: 'vnSuccessFactoryCreate'
|
||
|
});
|
||
|
}
|
||
|
module.factory('vnPut', put);
|
||
|
|
||
|
post.$inject = ['mgCreate'];
|
||
|
function post(mgCreate) {
|
||
|
return angular.extend(mgCreate, {
|
||
|
success: 'vnSuccessFactoryCreate'
|
||
|
});
|
||
|
}
|
||
|
module.factory('vnPost', post);
|