refactor(common): Question

This commit is contained in:
Tibo De Peuter 2025-03-31 21:49:58 +02:00
parent d6b79dcced
commit 70a31a292c
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
6 changed files with 21 additions and 19 deletions

View file

@ -1,5 +1,5 @@
import { QuestionDTO } from 'dwengo-1-backend/src/interfaces/question.js';
import { UserDTO } from './user';
import { QuestionDTO } from './question';
export interface AnswerDTO {
author: UserDTO;

14
common/src/interfaces/question.d.ts vendored Normal file
View file

@ -0,0 +1,14 @@
import { StudentDTO } from './student';
export interface QuestionDTO {
learningObjectIdentifier: LearningObjectIdentifier;
sequenceNumber?: number;
author: StudentDTO;
timestamp?: string;
content: string;
}
export interface QuestionId {
learningObjectIdentifier: LearningObjectIdentifier;
sequenceNumber: number;
}