/**
|
* Created by wisestone on 2018-01-08.
|
*/
|
'use strict';
|
|
define([
|
'app'
|
], function (app) {
|
app.factory("Workspace", ['$http', '$log', function ($http, $log) {
|
return {
|
find : function (conditions) {
|
return $http.post("workspace/find", conditions).then(function (response) {
|
$log.debug("업무공간 목록 데이터 : ", response);
|
return response;
|
});
|
},
|
out : function (conditions) {
|
return $http.post("workspace/out", conditions).then(function (response) {
|
$log.debug("업무공간 사용자 제외 결과 : ", response);
|
return response;
|
});
|
},
|
findPrimaryWorkspace : function (conditions) {
|
return $http.post("workspace/findPrimaryWorkspace", conditions).then(function (response) {
|
$log.debug("Primary Workspace : ", response);
|
return response;
|
});
|
},
|
findMyWorkspace : function (conditions) {
|
return $http.post("workspace/findMyWorkspace", conditions).then(function (response) {
|
$log.debug("자신이 관리하는 업무공간 정보 결과 : ", response);
|
return response;
|
});
|
},
|
modify : function (conditions) {
|
return $http.post("workspace/modify", conditions).then(function (response) {
|
$log.debug("업무공간 수정 결과 : ", response);
|
return response;
|
});
|
},
|
checkUseWorkspace : function (conditions) {
|
return $http.post("workspace/checkUseWorkspace", conditions).then(function (response) {
|
$log.debug("업무공간 참여 여부 조회 결과 : ", response);
|
return response;
|
});
|
},
|
}
|
}
|
]);
|
});
|