refactor(common): Assignments
This commit is contained in:
		
							parent
							
								
									4b1c343592
								
							
						
					
					
						commit
						757c89d841
					
				
					 7 changed files with 21 additions and 17 deletions
				
			
		
							
								
								
									
										4
									
								
								common/src/interfaces/answer.d.ts
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								common/src/interfaces/answer.d.ts
									
										
									
									
										vendored
									
									
								
							|  | @ -1,5 +1,5 @@ | |||
| import { UserDTO } from 'dwengo-1-backend/src/interfaces/user.js' | ||||
| import { QuestionDTO } from 'dwengo-1-backend/src/interfaces/question.js' | ||||
| 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; | ||||
|  |  | |||
							
								
								
									
										11
									
								
								common/src/interfaces/assignment.d.ts
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								common/src/interfaces/assignment.d.ts
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | |||
| import { GroupDTO } from 'dwengo-1-backend/src/interfaces/group.js'; | ||||
| 
 | ||||
| export interface AssignmentDTO { | ||||
|     id: number; | ||||
|     class: string; // Id of class 'within'
 | ||||
|     title: string; | ||||
|     description: string; | ||||
|     learningPath: string; | ||||
|     language: string; | ||||
|     groups?: GroupDTO[] | string[]; // TODO
 | ||||
| } | ||||
		Reference in a new issue