OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-11-05 fe1b9e8b4e54fb22022a0d13cc57b72bc8ba9840
src/main/webapp/scripts/components/userWorkspace/userWorkspace.service.js
@@ -6,6 +6,7 @@
define(['app'], function (app) {
    app.factory("UserWorkspace", ['$http', '$log', function ($http, $log) {
        return {
            //사용자 등급 관리
            levelFind : function (conditions) {
                return $http.post("userLevel/find", conditions).then(function (response) {
                    $log.debug("사용자 등급 목록 : ", response);
@@ -30,30 +31,58 @@
                    return response;
                });
            },
            // departmentFind : function (conditions) {
            //     return $http.post("userWorkspace/departmentFind", conditions).then(function (response) {
            //         $log.debug("부서 목록 : ", response);
            //         return response;
            //     });
            // },
            // departmentAdd : function (conditions) {
            //     return $http.post("userWorkspace/departmentAdd", conditions).then(function (response) {
            //         $log.debug("부서 생성 결과 : ", response);
            //         return response;
            //     });
            // },
            //부서 관리
            departmentFind : function (conditions) {
                return $http.post("departmentManage/find", conditions).then(function (response) {
                    $log.debug("부서 목록 : ", response);
                    return response;
                });
            },
            departmentDetail : function (conditions) {
                return $http.post("departmentManage/detail", conditions).then(function (response) {
                    $log.debug("부서 상세 : ", response);
                    return response;
                });
            },
            departmentAdd : function (conditions) {
                return $http.post("departmentManage/add", conditions).then(function (response) {
                    $log.debug("부서 생성 결과 : ", response);
                    return response;
                });
            },
            departmentModify : function (conditions) {
                return $http.post("departmentManage/modify", conditions).then(function (response) {
                    $log.debug("부서 수정 결과 : ", response);
                    return response;
                });
            },
            departmentRemove : function (conditions) {
                return $http.post("departmentManage/remove", conditions).then(function (response) {
                    $log.debug("부서 삭제 결과 : ", response);
                    return response;
                });
            },
            //사용자 관리
            find : function (conditions) {
                return $http.post("userLevel/find", conditions).then(function (response) {
                return $http.post("userWorkspace/find", conditions).then(function (response) {
                    $log.debug("워크스페이스에 참여하는 전체 사용자 목록 : ", response);
                    return response;
                });
            },
            modifyLevel : function (conditions) {
            modifyLevelPermission : function (conditions) {
                return $http.post("userLevel/modify", conditions).then(function (response) {
                    $log.debug("워크스페이스 참여자 참여 상태 변경 결과 : ", response);
                    $log.debug("사용자 등급 권한 변경 결과 : ", response);
                    return response;
                });
            }
            },
            modify : function (conditions) {
                return $http.post("userWorkspace/modify", conditions).then(function (response) {
                    $log.debug("참여 상태 수정 결과 : ", response);
                    return response;
                });
            },
        }
    }
    ])