feat : calender

Deskripsi:
- update api calender
- update ui calender

No Issue
This commit is contained in:
lukman
2024-08-15 17:29:53 +08:00
parent 1634623e80
commit e608bf70bc
17 changed files with 272 additions and 87 deletions

View File

@@ -1,4 +1,10 @@
export const funGetAllCalender = async (path?: string) => {
const response = await fetch(`/api/calender${(path) ? path : ''}`, { next: { tags: ['calender'] } });
return await response.json().catch(() => null);
}
export const funGetOneCalender = async (path: string) => {
const response = await fetch(`/api/calender/${path}`);
return await response.json().catch(() => null);
}

View File

@@ -3,8 +3,28 @@ export interface IDataCalender {
title: string
desc: string
status: number
timeStart: string
timeEnd: string
dateStart: string
dateEnd: string
createdAt: string
user_name: string
}
export interface IDataDetailByIdCalender {
id: string
title: string
desc: string
timeStart: string
dateStart: string
timeEnd: string
createdAt: string
linkMeet: string
repeatEventTyper: string
}
export interface IDataDetailByIdMember {
id: string
idUser: string
name: string
email: string
}