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
51
52
53
54
55
56
57
58
59
60
61
62
/**
 * Created by wisestone on 2017-12-21.
 */
'use strict';
 
define([
    'app'
], function (app) {
    app.factory("Project", ['$http', '$log', '$q', '$rootScope', function ($http, $log) {
        return {
            find : function (conditions) {
                return $http.post("project/find", conditions).then(function (response) {
                    $log.debug("프로젝트 목록 데이터 : ", response);
                    return response;
                });
            },
            findWork : function (conditions) {
                return $http.post("project/findWork", conditions).then(function (response) {
                    $log.debug("참여 프로젝트 목록 데이터(전체) : ", response);
                    return response;
                });
            },
            findListWork : function (conditions) {
                return $http.post("project/findListWork", conditions).then(function (response) {
                    $log.debug("참여 프로젝트 목록 데이터(하위프로젝트 배열 포함) : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("project/add", conditions).then(function (response) {
                    $log.debug("프로젝트 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("project/modify", conditions).then(function (response) {
                    $log.debug("프로젝트 수정 결과 : ", response);
                    return response;
                });
            },
            detail : function (conditions) {
                return $http.post("project/detail", conditions).then(function (response) {
                    $log.debug("프로젝트 상세 데이터 : ", response);
                    return response;
                });
            },
            remove : function (conditions) {
                return $http.post("project/remove", conditions).then(function (response) {
                    $log.debug("프로젝트 삭제 결과 : ", response);
                    return response;
                });
            },
            findLastUseProject : function (conditions) {
                return $http.post("project/findLastUseProject", conditions).then(function (response) {
                    $log.debug("마지막으로 선택했던 프로젝트 데이터 : ", response);
                    return response;
                });
            },
        }
    }
    ]);
});