| | |
| | | ], function (app) { |
| | | app.factory("Workspace", ['$http', '$log', function ($http, $log) { |
| | | return { |
| | | levelFind : function (conditions) { |
| | | return $http.post("workspace/levelFind", conditions).then(function (response) { |
| | | $log.debug("사용자 등급 목록 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | departmentFind : function (conditions) { |
| | | return $http.post("workspace/departmentFind", conditions).then(function (response) { |
| | | $log.debug("부서 목록 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | find : function (conditions) { |
| | | return $http.post("workspace/find", conditions).then(function (response) { |
| | | $log.debug("업무공간 목록 데이터 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | levelAdd : function (conditions) { |
| | | return $http.post("workspace/levelAdd", conditions).then(function (response) { |
| | | $log.debug("사용자 등급 생성 결과 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | departmentAdd : function (conditions) { |
| | | return $http.post("workspace/departmentAdd", conditions).then(function (response) { |
| | | $log.debug("부서 생성 결과 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | |
| | | return response; |
| | | }); |
| | | }, |
| | | findUserLevel : function (conditions) { //사용자 등급 |
| | | return $http.post("workspace/levelFind", conditions).then(function (response) { |
| | | $log.debug("사용자 등급 정보 결과 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | findDepartment : function (conditions) { //부서 |
| | | return $http.post("workspace/departmentFind", conditions).then(function (response) { |
| | | $log.debug("사용자 등급 정보 결과 : ", response); |
| | | return response; |
| | | }); |
| | | }, |
| | | modify : function (conditions) { |
| | | return $http.post("workspace/modify", conditions).then(function (response) { |
| | | $log.debug("업무공간 수정 결과 : ", response); |