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
/**
 * Created by wisestone on 2018-01-04.
 */
'use strict';
 
define(['app'], function (app) {
    app.factory("Task", ['$http', '$log', '$upload', function ($http, $log, $upload) {
        return {
            find : function (conditions) {
                return $http.post("task/find", conditions).then(function (response) {
                    $log.debug("할일 목록 데이터 : ", response);
                    return response;
                });
            },
            add : function (conditions) {
                conditions.url = "task/add";
                return $upload.upload(conditions).then(function (response) {
                    $log.debug("할일 생성 결과 : ", response);
                    return response;
                });
            },
            modify : function (conditions) {
                conditions.url = "task/modify";
                return $upload.upload(conditions).then(function (response) {
                    $log.debug("할일 수정 결과 : ", response);
                    return response;
                });
            },
            modifyData : function (conditions) {
                return $http.post("task/modifyData", conditions).then(function (response) {
                    $log.debug("할일 수정 데이터 : ", response);
                    return response;
                });
            },
            remove : function (conditions) {
                return $http.post("task/remove", conditions).then(function (response) {
                    $log.debug("할일 삭제 결과 : ", response);
                    return response;
                });
            },
            updateTaskKanBan : function (conditions) {
                return $http.post("task/updateTaskKanBan", conditions).then(function (response) {
                    $log.debug("칸반보드 업데이트 결과 : ", response);
                    return response;
                });
            },
            excelImport : function (conditions) {
                conditions.url = "task/excelImport";
                return $upload.upload(conditions).then(function (response) {
                    $log.debug("할일 Import 결과 : ", response);
                    return response;
                });
            }
        }
    }
    ])
});