Skip to content

Commit

Permalink
Merge pull request #79 from Team-Futsukayoi/feature/#11-create-event-…
Browse files Browse the repository at this point in the history
…function

feat: イベント簡易生成API作成(UI未完成)
  • Loading branch information
yasut0ra authored Oct 27, 2024
2 parents 323e1eb + bbe119c commit a39ba2c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/create_event/create_event.js
Original file line number Diff line number Diff line change
@@ -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);
}
Empty file added src/create_event/find_store.js
Empty file.
Empty file added src/create_event/get_locate.js
Empty file.

0 comments on commit a39ba2c

Please sign in to comment.