fix: interface bestanden enkelvoud

This commit is contained in:
Gabriellvl 2025-03-08 09:36:03 +01:00
parent 9c9e7c4870
commit 4968d7cb07
12 changed files with 20 additions and 20 deletions

View file

@ -0,0 +1,23 @@
import { Student } from "../entities/users/student.entity";
export interface StudentDTO {
id: string;
username: string;
firstName: string;
lastName: string;
endpoints?: {
classes: string;
questions: string;
invitations: string;
groups: string;
};
}
export function mapToStudentDTO(student: Student): StudentDTO {
return {
id: student.username,
username: student.username,
firstName: student.firstName,
lastName: student.lastName,
};
}