ff-admin/src/viewmodels/admin/calendar.models.ts

36 lines
670 B
TypeScript
Raw Normal View History

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-11-07 09:16:38 +01:00
starttime: string;
endtime: string;
2024-10-27 15:51:15 +01:00
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;
}