OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-02-09 a227dd7df7f84a5cfb7218042a6f844991dcfb96
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
/**
 * Created by maprex on 2021-11-04
 */
'use strict';
 
define([
    'app'
], function (app) {
    app.factory("HostingField", ['$http', '$log', '$upload', function ($http, $log, $upload) {
        return {
            find : function (conditions) {
                return $http.post("hostingField/find", conditions).then(function (response) {
                    $log.debug("Hosting 필드 목록 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("hostingField/add", conditions).then(function (response) {
                    $log.debug("HostingField 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("hostingField/modify", conditions).then(function (response) {
                    $log.debug("HostingField 수정 결과 : ", response);
                    return response;
                });
            },
            detail : function (conditions) {
                return $http.post("hostingField/detail", conditions).then(function (response) {
                    $log.debug("HostingField 상세 : ", response);
                    return response;
                });
            },
            removes : function (conditions) {
                return $http.post("hostingField/remove", conditions).then(function (response) {
                    $log.debug("HostingField 삭제 결과 : ", response);
                    return response;
                });
            },
            importExcel : function (conditions) {
                conditions.url = "hostingField/importExcel";
                return $upload.upload(conditions).then(function (response) {
                    $log.debug("hostingField Import 결과 : ", response);
                    return response;
                });
            },
            // 업체/ISP/호스팅 조회
            getPartnerList : function (conditions) {
                return $http.post("company/getPartnerList", conditions).then(function (response) {
                    $log.debug("업체/isp/호스팅 목록 조회 결과 : ", response);
                    return response;
                });
            },
 
        }
    }
    ]);
});