Feat: session table and interface
This commit is contained in:
		
							
								
								
									
										9
									
								
								repos/session.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								repos/session.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| package repos | ||||
|  | ||||
| import "gralias/models" | ||||
|  | ||||
| type SessionsRepo interface { | ||||
| 	SessionByToken(token string) (*models.Session, error) | ||||
| 	SessionCreate(req *models.Session) error | ||||
| 	SessionUpdateLifetime(minutes uint32) error | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder