/**
|
* Created by wisestone on 2017-12-21.
|
*/
|
'use strict';
|
|
define([
|
'app'
|
], function (app) {
|
app.factory("Project", ['$http', '$log', '$q', '$rootScope', function ($http, $log) {
|
return {
|
find : function (conditions) {
|
return $http.post("project/find", conditions).then(function (response) {
|
$log.debug("프로젝트 목록 데이터 : ", response);
|
return response;
|
});
|
},
|
findWork : function (conditions) {
|
return $http.post("project/findWork", conditions).then(function (response) {
|
$log.debug("참여 프로젝트 목록 데이터(전체) : ", response);
|
return response;
|
});
|
},
|
findListWork : function (conditions) {
|
return $http.post("project/findListWork", conditions).then(function (response) {
|
$log.debug("참여 프로젝트 목록 데이터(하위프로젝트 배열 포함) : ", response);
|
return response;
|
});
|
},
|
add : function (conditions) {
|
return $http.post("project/add", conditions).then(function (response) {
|
$log.debug("프로젝트 생성 결과 : ", response);
|
return response;
|
});
|
},
|
modify : function (conditions) {
|
return $http.post("project/modify", conditions).then(function (response) {
|
$log.debug("프로젝트 수정 결과 : ", response);
|
return response;
|
});
|
},
|
detail : function (conditions) {
|
return $http.post("project/detail", conditions).then(function (response) {
|
$log.debug("프로젝트 상세 데이터 : ", response);
|
return response;
|
});
|
},
|
remove : function (conditions) {
|
return $http.post("project/remove", conditions).then(function (response) {
|
$log.debug("프로젝트 삭제 결과 : ", response);
|
return response;
|
});
|
},
|
findLastUseProject : function (conditions) {
|
return $http.post("project/findLastUseProject", conditions).then(function (response) {
|
$log.debug("마지막으로 선택했던 프로젝트 데이터 : ", response);
|
return response;
|
});
|
},
|
}
|
}
|
]);
|
});
|