From 916a3cbabe4e50062fce61ff6f2f5d46c05dfbd1 Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 목, 17 3월 2022 17:47:45 +0900 Subject: [PATCH] - api로 이슈 추가 시 url/ip로 업체 찾는 코드 수정 --- src/main/webapp/scripts/components/api/api.service.js | 40 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/scripts/components/api/api.service.js b/src/main/webapp/scripts/components/api/api.service.js index b95c0c1..d81b9cf 100644 --- a/src/main/webapp/scripts/components/api/api.service.js +++ b/src/main/webapp/scripts/components/api/api.service.js @@ -3,7 +3,7 @@ define([ 'app' ], function (app) { - app.factory("Api", ['$http', '$log', function ($http, $log) { + app.factory( "Api", ['$http', '$log', function ($http, $log) { return { find : function (conditions) { return $http.post("apiToken/find", conditions).then(function (response) { @@ -22,7 +22,43 @@ $log.debug("�넗�겙 �궘�젣 寃곌낵 : ", response); return response; }); - } + }, + findApiDefault : function (conditions) { + return $http.post("issueApiDefault/find", conditions).then(function (response) { + $log.debug("�씠�뒋 �쑀�삎 珥덇린媛� 議고쉶 寃곌낵 : ", response); + return response; + }); + }, + modifyApiDefault : function (conditions) { + return $http.post("issueApiDefault/modify", conditions).then(function (response) { + $log.debug("�씠�뒋 �쑀�삎 珥덇린媛� �닔�젙 寃곌낵 : ", response); + return response; + }); + }, + findApiOverlap : function (conditions) { + return $http.post("customFieldApiOverlap/find", conditions).then(function (response) { + $log.debug("�씠�뒋 �쑀�삎 以묐났媛� 議고쉶 寃곌낵 : ", response); + return response; + }); + }, + modifyApiOverlap : function (conditions) { + return $http.post("customFieldApiOverlap/modify", conditions).then(function (response) { + $log.debug("�씠�뒋 �쑀�삎 以묐났媛� �닔�젙 寃곌낵 : ", response); + return response; + }); + }, + findHistory : function (conditions) { + return $http.post("api/findHistory", conditions).then(function (response) { + $log.debug("API �씠�뒋 �벑濡� 湲곕줉 議고쉶 寃곌낵 : ", response); + return response; + }); + }, + saveCompleteIssueStatus : function (conditions) { + return $http.post("api/saveCompleteIssueStatus", conditions).then(function (response) { + $log.debug("API �씠�뒋 �벑濡� 湲곕줉 議고쉶 寃곌낵 : ", response); + return response; + }); + }, } } ]); -- Gitblit v1.8.0