OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-11-08 4fb5816b684f0b7b36da4e51c3db0d93de5b9971
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
/**
 * Created by maprex on 2021-11-04
 */
'use strict';
 
define([
    'app'
], function (app) {
    app.factory("CompanyField", ['$http', '$log', function ($http, $log) {
        return {
            find : function (conditions) {
                return $http.post("companyField/find", conditions).then(function (response) {
                    $log.debug("업체 필드 목록 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("companyField/add", conditions).then(function (response) {
                    $log.debug("업체 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("companyField/modify", conditions).then(function (response) {
                    $log.debug("업체 수정 결과 : ", response);
                    return response;
                });
            },
            detail : function (conditions) {
                return $http.post("companyField/detail", conditions).then(function (response) {
                    $log.debug("업체 상세 : ", response);
                    return response;
                });
            },
            removes : function (conditions) {
                return $http.post("companyField/remove", conditions).then(function (response) {
                    $log.debug("업체 삭제 결과 : ", response);
                    return response;
                });
            }
        }
    }
    ]);
});