From a11dc4e377730f1ce08bc7210366c21e2833bf05 Mon Sep 17 00:00:00 2001 From: jhjang <jhjang@maprex.co.kr> Date: 월, 28 2월 2022 18:38:29 +0900 Subject: [PATCH] 1.0.5버전 --- src/main/webapp/scripts/components/HostingField/hostingField.service.js | 45 ++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 42 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/scripts/components/HostingField/hostingField.service.js b/src/main/webapp/scripts/components/HostingField/hostingField.service.js index ab89318..690e842 100644 --- a/src/main/webapp/scripts/components/HostingField/hostingField.service.js +++ b/src/main/webapp/scripts/components/HostingField/hostingField.service.js @@ -6,14 +6,53 @@ define([ 'app' ], function (app) { - app.factory("HostingField", ['$http', '$log', function ($http, $log) { + app.factory("HostingField", ['$http', '$log', '$upload', function ($http, $log, $upload) { return { find : function (conditions) { - return $http.post("HostingField/find", conditions).then(function (response) { + return $http.post("hostingField/find", conditions).then(function (response) { $log.debug("Hosting �븘�뱶 紐⑸줉 �뜲�씠�꽣 : ", response); return response; }); - } + }, + add : function (conditions) { + return $http.post("hostingField/add", conditions).then(function (response) { + $log.debug("HostingField �깮�꽦 寃곌낵 : ", response); + return response; + }); + }, + modify : function (conditions) { + return $http.post("hostingField/modify", conditions).then(function (response) { + $log.debug("HostingField �닔�젙 寃곌낵 : ", response); + return response; + }); + }, + detail : function (conditions) { + return $http.post("hostingField/detail", conditions).then(function (response) { + $log.debug("HostingField �긽�꽭 : ", response); + return response; + }); + }, + removes : function (conditions) { + return $http.post("hostingField/remove", conditions).then(function (response) { + $log.debug("HostingField �궘�젣 寃곌낵 : ", response); + return response; + }); + }, + importExcel : function (conditions) { + conditions.url = "hostingField/importExcel"; + return $upload.upload(conditions).then(function (response) { + $log.debug("hostingField Import 寃곌낵 : ", response); + return response; + }); + }, + // �뾽泥�/ISP/�샇�뒪�똿 議고쉶 + getPartnerList : function (conditions) { + return $http.post("company/getPartnerList", conditions).then(function (response) { + $log.debug("�뾽泥�/isp/�샇�뒪�똿 紐⑸줉 議고쉶 寃곌낵 : ", response); + return response; + }); + }, + } } ]); -- Gitblit v1.8.0