From bbe119ce6f502057f993d081298576273c0f4411 Mon Sep 17 00:00:00 2001 From: Minoru-kuma Date: Sun, 27 Oct 2024 13:41:49 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88?= =?UTF-8?q?=E7=B0=A1=E6=98=93=E7=94=9F=E6=88=90API=E4=BD=9C=E6=88=90(UM?= =?UTF-8?q?=E6=9C=AA=E5=AE=8C=E6=88=90)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/create_event/create_event.js | 39 ++++++++++++++++++++++++++++++++ src/create_event/find_store.js | 0 src/create_event/get_locate.js | 0 3 files changed, 39 insertions(+) create mode 100644 src/create_event/create_event.js create mode 100644 src/create_event/find_store.js create mode 100644 src/create_event/get_locate.js diff --git a/src/create_event/create_event.js b/src/create_event/create_event.js new file mode 100644 index 0000000..260531e --- /dev/null +++ b/src/create_event/create_event.js @@ -0,0 +1,39 @@ +function createEvent() { + const eventname = setEventName(); + const storeInfo = setStoreInfo(); + const date = setDate(); + const event = { + eventname: eventname, + storeInfo: storeInfo, + date: date, + } + return event; +} + +async function setDate() { + const d = new Date(); + const randomint = Math.floor(3 * (Math.random() * 10)); + d.setDate(d.getDate() + randomint); + console.log(d); + return d + +} + +function setEventName() { + const eventname = "Event Name"; + return eventname; +} + +function setStoreInfo() { + const storeInfo = { + name: '個室焼肉 琥珀', + station_name: '盛岡', + access: '盛岡大通/盛岡駅から徒歩10分', + open: '月~木: 11:00~14:30 (料理L.O. 14:00 ドリンクL.O. 14:00)17:30~23:00 (料理L.O. 22:30 ドリンクL.O. 22:30)金、土: 17:30~23:00 (料理L.O. 22:30 ドリンクL.O. 22:30)', + } + return storeInfo; +} +function test() { + const event = createEvent(); + console.log(event); +} diff --git a/src/create_event/find_store.js b/src/create_event/find_store.js new file mode 100644 index 0000000..e69de29 diff --git a/src/create_event/get_locate.js b/src/create_event/get_locate.js new file mode 100644 index 0000000..e69de29