feat(history): show user account history on manage page

This commit is contained in:
OldHawk
2018-05-29 18:05:10 +08:00
parent 330f0c5406
commit 37cd2887fe
14 changed files with 151 additions and 44 deletions

View File

@@ -325,6 +325,14 @@
params: {
userId: '@userId'
}
},
getUserHistory: {
method: 'GET',
isArray: true,
url: '/api/users/:userId/history',
params: {
userId: '@userId'
}
}
});
@@ -361,6 +369,9 @@
},
presentUserInvitations: function (params) {
return this.presentInvitations(params).$promise;
},
userHistory: function (params) {
return this.getUserHistory(params).$promise;
}
});