refactor(common): Student

This commit is contained in:
Tibo De Peuter 2025-03-31 21:48:13 +02:00
parent bc8e888373
commit d6b79dcced
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
7 changed files with 22 additions and 18 deletions

View file

@ -1,6 +1,7 @@
import { Question } from '../entities/questions/question.entity.js';
import { LearningObjectIdentifier } from '../entities/content/learning-object-identifier.js';
import { mapToStudentDTO, StudentDTO } from './student.js';
import { mapToStudentDTO } from './student.js';
import { StudentDTO } from 'dwengo-1-common/src/interfaces/student';
export interface QuestionDTO {
learningObjectIdentifier: LearningObjectIdentifier;

View file

@ -1,18 +1,6 @@
import { Student } from '../entities/users/student.entity.js';
import { getStudentRepository } from '../data/repositories.js';
export interface StudentDTO {
id: string;
username: string;
firstName: string;
lastName: string;
endpoints?: {
classes: string;
questions: string;
invitations: string;
groups: string;
};
}
import { StudentDTO } from 'dwengo-1-common/src/interfaces/student';
export function mapToStudentDTO(student: Student): StudentDTO {
return {