feat : update history
This commit is contained in:
@@ -4,6 +4,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 funGetHostory = async (path?: string) => {
|
||||
const response = await fetch(`/api/calender/history${(path) ? path : ''}`, { next: { tags: ['hostory'] } });
|
||||
return await response.json().catch(() => null);
|
||||
}
|
||||
|
||||
export const funGetOneCalender = async (path: string) => {
|
||||
const response = await fetch(`/api/calender/${path}`);
|
||||
|
||||
@@ -11,6 +11,16 @@ export interface IDataCalender {
|
||||
user_name: string
|
||||
}
|
||||
|
||||
export interface IHistoryCalender {
|
||||
dateStart: string;
|
||||
data: {
|
||||
id: number;
|
||||
title: string;
|
||||
timeEnd: string;
|
||||
timeStart: string;
|
||||
}[];
|
||||
}[];
|
||||
|
||||
export interface IDataDetailByIdCalender {
|
||||
id: string
|
||||
title: string
|
||||
@@ -61,7 +71,7 @@ export interface IEditCalender {
|
||||
linkMeet?: string
|
||||
repeatEventTyper?: string
|
||||
desc?: string,
|
||||
member?: IEditMemberCalender[]
|
||||
member?: IFormMemberCalender[]
|
||||
}
|
||||
|
||||
export interface IEditMemberCalender {
|
||||
|
||||
Reference in New Issue
Block a user