refactor(common): User
This commit is contained in:
		
							parent
							
								
									1a0704c16f
								
							
						
					
					
						commit
						3b51b0f1f6
					
				
					 4 changed files with 16 additions and 15 deletions
				
			
		
							
								
								
									
										2
									
								
								common/src/interfaces/answer.d.ts
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								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 './user'; | ||||
| 
 | ||||
| export interface AnswerDTO { | ||||
|     author: UserDTO; | ||||
|  |  | |||
							
								
								
									
										12
									
								
								common/src/interfaces/user.d.ts
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								common/src/interfaces/user.d.ts
									
										
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| export interface UserDTO { | ||||
|     id?: string; | ||||
|     username: string; | ||||
|     firstName: string; | ||||
|     lastName: string; | ||||
|     endpoints?: { | ||||
|         self: string; | ||||
|         classes: string; | ||||
|         questions: string; | ||||
|         invitations: string; | ||||
|     }; | ||||
| } | ||||
		Reference in a new issue