OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-10-14 3052936fed9166521b0557a36df83eb11a5e51ee
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
/**
 * Created by wisestone on 2018-05-29.
 */
'use strict';
 
define([
    'app'
], function (app) {
    app.factory("Faq", ['$http', '$log', function ($http, $log) {
        return {
            find : function (conditions) {
                return $http.post("faq/find", conditions).then(function (response) {
                    $log.debug("FAQ 목록 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("faq/add", conditions).then(function (response) {
                    $log.debug("FAQ 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("faq/modify", conditions).then(function (response) {
                    $log.debug("FAQ 수정 결과 : ", response);
                    return response;
                });
            },
            activation : function (conditions) {
                return $http.post("faq/activation", conditions).then(function (response) {
                    $log.debug("FAQ 상태 변경 결과 : ", response);
                    return response;
                });
            },
            detail : function (conditions) {
                return $http.post("faq/detail", conditions).then(function (response) {
                    $log.debug("FAQ 상세 데이터 : ", response);
                    return response;
                });
            },
            remove : function (conditions) {
                return $http.post("faq/remove", conditions).then(function (response) {
                    $log.debug("FAQ 삭제 결과 : ", response);
                    return response;
                });
            }
        }
    }
    ]);
});