feat: add pkg/training/ with types, structs, and repository interfaces
This commit is contained in:
		
							parent
							
								
									afe0f18523
								
							
						
					
					
						commit
						00158e89fe
					
				
					 9 changed files with 113 additions and 0 deletions
				
			
		
							
								
								
									
										9
									
								
								pkg/training/repository.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								pkg/training/repository.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| package training | ||||
| 
 | ||||
| type Repository interface { | ||||
| 	Save(*Training) error | ||||
| 	Get(ID) (*Training, error) | ||||
| 	Update(*Training) error | ||||
| 	Delete(ID) error | ||||
| 	FindAll() ([]Training, error) | ||||
| } | ||||
		Reference in a new issue