2024-10-27 15:51:15 +01:00
|
|
|
import type { CalendarTypeViewModel } from "./calendarType.models";
|
|
|
|
|
|
|
|
export interface CalendarViewModel {
|
2024-10-28 16:02:41 +01:00
|
|
|
id: string;
|
2024-10-27 15:51:15 +01:00
|
|
|
starttime: Date;
|
|
|
|
endtime: Date;
|
|
|
|
title: string;
|
|
|
|
content: string;
|
2024-10-28 16:02:41 +01:00
|
|
|
location: string;
|
|
|
|
allDay: boolean;
|
|
|
|
createdAt: Date;
|
|
|
|
updatedAt: Date;
|
2024-10-27 15:51:15 +01:00
|
|
|
type: CalendarTypeViewModel;
|
|
|
|
}
|
2024-10-28 16:02:41 +01:00
|
|
|
|
|
|
|
export interface CreateCalendarViewModel {
|
|
|
|
starttime: Date;
|
|
|
|
endtime: Date;
|
|
|
|
title: string;
|
|
|
|
content: string;
|
|
|
|
location: string;
|
|
|
|
allDay: boolean;
|
|
|
|
typeId: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UpdateCalendarViewModel {
|
|
|
|
id: string;
|
|
|
|
starttime: Date;
|
|
|
|
endtime: Date;
|
|
|
|
title: string;
|
|
|
|
content: string;
|
|
|
|
location: string;
|
|
|
|
allDay: boolean;
|
|
|
|
typeId: string;
|
|
|
|
}
|