refactor(common): Question
This commit is contained in:
parent
d6b79dcced
commit
70a31a292c
6 changed files with 21 additions and 19 deletions
2
common/src/interfaces/answer.d.ts
vendored
2
common/src/interfaces/answer.d.ts
vendored
|
@ -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
14
common/src/interfaces/question.d.ts
vendored
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue