Skip to content

Commit

Permalink
feat: イベント簡易生成API作成(UM未完成)
Browse files Browse the repository at this point in the history
  • Loading branch information
Minoru-kuma committed Oct 27, 2024
1 parent 50b8c66 commit bbe119c
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 bbe119c

Please sign in to comment.