refactor(common): AnswerDTO
This commit is contained in:
parent
8bf927d1c9
commit
6c9c8d782d
2 changed files with 19 additions and 16 deletions
16
common/src/interfaces/answer.d.ts
vendored
Normal file
16
common/src/interfaces/answer.d.ts
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { UserDTO } from 'dwengo-1-backend/src/interfaces/user.js'
|
||||
import { QuestionDTO } from 'dwengo-1-backend/src/interfaces/question.js'
|
||||
|
||||
export interface AnswerDTO {
|
||||
author: UserDTO;
|
||||
toQuestion: QuestionDTO;
|
||||
sequenceNumber: number;
|
||||
timestamp: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface AnswerId {
|
||||
author: string;
|
||||
toQuestion: QuestionId;
|
||||
sequenceNumber: number;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue