refactor(common): Group

This commit is contained in:
Tibo De Peuter 2025-03-31 19:09:23 +02:00
parent 24ed39d04e
commit 1a0704c16f
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
7 changed files with 18 additions and 13 deletions

View file

@ -1,13 +1,7 @@
import { Group } from '../entities/assignments/group.entity.js';
import { mapToAssignmentDTO } from './assignment.js';
import { mapToStudentDTO, StudentDTO } from './student.js';
import { AssignmentDTO } from 'dwengo-1-common/src/interfaces/assignment';
export interface GroupDTO {
assignment: number | AssignmentDTO;
groupNumber: number;
members: string[] | StudentDTO[];
}
import { mapToStudentDTO } from './student.js';
import { GroupDTO } from 'dwengo-1-common/src/interfaces/group';
export function mapToGroupDTO(group: Group): GroupDTO {
return {