From a227dd7df7f84a5cfb7218042a6f844991dcfb96 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 수, 09 2월 2022 14:53:41 +0900
Subject: [PATCH] - isp, 호스팅 엑셀 import 기능 추가

---
 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