OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-12-02 a2d725403ea649dc7ac266e50ed0905ee93c2e9b
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
'use strict';
 
define([
    'app'
], function (app) {
    app.factory(  "Api", ['$http', '$log', function ($http, $log) {
        return {
            find : function (conditions) {
                return $http.post("apiToken/find", conditions).then(function (response) {
                    $log.debug("토큰 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("apiToken/add", conditions).then(function (response) {
                    $log.debug("토큰 생성 결과 : ", response);
                    return response;
                });
            },
            remove : function (conditions) {
                return $http.post("apiToken/remove", conditions).then(function (response) {
                    $log.debug("토큰 삭제 결과 : ", response);
                    return response;
                });
            },
            findApiDefault : function (conditions) {
                return $http.post("issueApiDefault/find", conditions).then(function (response) {
                    $log.debug("이슈 유형 초기값 조회 결과 : ", response);
                    return response;
                });
            },
            modifyApiDefault : function (conditions) {
                return $http.post("issueApiDefault/modify", conditions).then(function (response) {
                    $log.debug("이슈 유형 초기값 수정 결과 : ", response);
                    return response;
                });
            },
            findApiOverlap : function (conditions) {
                return $http.post("customFieldApiOverlap/find", conditions).then(function (response) {
                    $log.debug("이슈 유형 중복값 조회 결과 : ", response);
                    return response;
                });
            },
            modifyApiOverlap : function (conditions) {
                return $http.post("customFieldApiOverlap/modify", conditions).then(function (response) {
                    $log.debug("이슈 유형 중복값 수정 결과 : ", response);
                    return response;
                });
            },
            findHistory : function (conditions) {
                return $http.post("api/findHistory", conditions).then(function (response) {
                    $log.debug("API 이슈 등록 기록 조회 결과 : ", response);
                    return response;
                });
            }
        }
    }
    ]);
});