OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-11-25 e50b78db2f5e74f88b7e5c736f1fca4ca3cbe29b
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
/**
 * Created by wisestone on 2018-05-10.
 */
'use strict';
 
define([
    'app'
], function (app) {
    app.factory("Workflow", ['$http', '$log', function ($http, $log) {
        return {
            find : function (conditions) {
                return $http.post("workflow/find", conditions).then(function (response) {
                    $log.debug("워크플로우 목록 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                return $http.post("workflow/add", conditions).then(function (response) {
                    $log.debug("워크플로우 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                return $http.post("workflow/modify", conditions).then(function (response) {
                    $log.debug("워크플로우 수정 결과 : ", response);
                    return response;
                });
            },
            detail : function (conditions) {
                return $http.post("workflow/detail", conditions).then(function (response) {
                    $log.debug("워크플로우 상세 데이터 : ", response);
                    return response;
                });
            },
            remove : function (conditions) {
                return $http.post("workflow/remove", conditions).then(function (response) {
                    $log.debug("워크플로우 삭제 결과 : ", response);
                    return response;
                });
            },
            findDepartments : function (conditions) {
                return $http.post("workflow/findDepartments", conditions).then(function (response) {
                    $log.debug("부서 목록 가져오기 결과: ", response);
                    return response;
                });
            },
            uploadImage : function (conditions) {
                return $http.post("workflow/uploadImage", conditions).then(function (response) {
                    $log.debug("워크플로우 이미지 업로드 결과 : ", response);
                    return response;
                });
            },
        }
    }
    ]);
});