From 9656cec5cb6e56437a812e14ccdf38116b9f9187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A0=95=ED=98=81?= Date: Thu, 16 May 2024 11:48:35 +0900 Subject: [PATCH 1/2] feat : area.js upload --- src/api/area.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/api/area.js diff --git a/src/api/area.js b/src/api/area.js new file mode 100644 index 0000000..8d22e14 --- /dev/null +++ b/src/api/area.js @@ -0,0 +1,13 @@ +import { localAxios } from "@/utils/http-commons"; + +const local = localAxios; + +function getSido(success, fail) { + local.get(`/area/sido`).then(success).catch(fail); +} + +function getGugun(sidoCode, success, fail) { + local.get(`/area/sido?sidoCode=${sidoCode}`).then(success).catch(fail); +} + +export { getSido, getGugun }; From 392e84634218164105a0e04575ccd4133d4480f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A0=95=ED=98=81?= Date: Thu, 16 May 2024 11:49:18 +0900 Subject: [PATCH 2/2] feat : attraction.js upload --- src/api/attraction.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/api/attraction.js diff --git a/src/api/attraction.js b/src/api/attraction.js new file mode 100644 index 0000000..57c4586 --- /dev/null +++ b/src/api/attraction.js @@ -0,0 +1,15 @@ +import { localAxios } from "@/utils/http-commons"; + +const local = localAxios; + +function getArticles(contentTypeId, sidoCode, gugunCode, title, success, fail) { + //list + local + .get( + `/attraction/search?contentTypeId=${contentTypeId}&sidoCode=${sidoCode}&gugunCode=${gugunCode}&title=${title}` + ) + .then(success) + .catch(fail); +} + +export { getArticles };