OWL ITS + 탐지시스템(인터넷 진흥원)
wyu
2021-11-10 9c17ea26bb894c1969ed1dd12bd538ebba7d244e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
 * Created by wisestone on 2018-10-02.
 */
'use strict';
 
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);
                    return response;
                });
            },
            levelAdd : function (conditions) {
                return $http.post("userLevel/add", conditions).then(function (response) {
                    $log.debug("사용자 등급 생성 결과 : ", response);
                    return response;
                });
            },
            levelModify : function (conditions) {
                return $http.post("userLevel/modify", conditions).then(function (response) {
                    $log.debug("사용자 등급 수정 결과 : ", response);
                    return response;
                });
            },
            levelRemove : function (conditions) {
                return $http.post("userLevel/remove", conditions).then(function (response) {
                    $log.debug("사용자 등급 삭제 결과 : ", response);
                    return response;
                });
            },
            
            //부서 관리
            departmentFind : function (conditions) {
                return $http.post("department/find", conditions).then(function (response) {
                    $log.debug("부서 목록 : ", response);
                    return response;
                });
            },
            departmentDetail : function (conditions) {
                return $http.post("department/detail", conditions).then(function (response) {
                    $log.debug("부서 상세 : ", response);
                    return response;
                });
            },
            departmentAdd : function (conditions) {
                return $http.post("department/add", conditions).then(function (response) {
                    $log.debug("부서 생성 결과 : ", response);
                    return response;
                });
            },
            departmentModify : function (conditions) {
                return $http.post("department/modify", conditions).then(function (response) {
                    $log.debug("부서 수정 결과 : ", response);
                    return response;
                });
            },
            departmentRemove : function (conditions) {
                return $http.post("department/remove", conditions).then(function (response) {
                    $log.debug("부서 삭제 결과 : ", response);
                    return response;
                });
            },
            
            //사용자 관리
            find : function (conditions) {
                return $http.post("userWorkspace/find", conditions).then(function (response) {
                    $log.debug("워크스페이스에 참여하는 전체 사용자 목록 : ", response);
                    return response;
                });
            },
            modifyLevelPermission : function (conditions) {
                return $http.post("userLevel/modify", conditions).then(function (response) {
                    $log.debug("사용자 등급 권한 변경 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("userWorkspace/modify", conditions).then(function (response) {
                    $log.debug("참여 상태 수정 결과 : ", response);
                    return response;
                });
            },
        }
    }
    ])
});