OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-11-01 58c96fb54e3e6bbf0c0df27e39eaff814f52e9d4
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
/**
 * Created by wisestone on 2018-01-08.
 */
'use strict';
 
define([
    'app'
], 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;
                });
            },
            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;
                });
            },
            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);
                    return response;
                });
            },
            checkUseWorkspace : function (conditions) {
                return $http.post("workspace/checkUseWorkspace", conditions).then(function (response) {
                    $log.debug("업무공간 참여 여부 조회 결과 : ", response);
                    return response;
                });
            },
        }
    }
    ]);
});