2016-04-21 12:19:51 +02:00
|
|
|
(function() {
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular
|
|
|
|
.module('harbor.services.project.member')
|
|
|
|
.service('ListProjectMemberService', ListProjectMemberService);
|
|
|
|
|
|
|
|
ListProjectMemberService.$inject = ['$http', '$log'];
|
|
|
|
|
2016-04-26 12:23:34 +02:00
|
|
|
function ListProjectMemberService($http, $log) {
|
2016-04-21 12:19:51 +02:00
|
|
|
|
|
|
|
return ListProjectMember;
|
|
|
|
|
2016-04-26 12:23:34 +02:00
|
|
|
function ListProjectMember(projectId, queryParams) {
|
|
|
|
console.log('project_member project_id:' + projectId);
|
|
|
|
var username = queryParams.username;
|
|
|
|
return $http
|
|
|
|
.get('/api/projects/' + projectId + '/members', {
|
|
|
|
params: {
|
|
|
|
'username': username
|
|
|
|
}
|
|
|
|
});
|
2016-04-21 12:19:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})();
|