mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-03 18:42:25 -06:00 
			
		
		
		
	add some more shortcuts
This commit is contained in:
		
					parent
					
						
							
								b1d6e09ddc
							
						
					
				
			
			
				commit
				
					
						adf48aa5b7
					
				
			
		
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -134,6 +134,14 @@ type DB interface {
 | 
				
			||||||
	// In case of no entries, a 'no entries' error will be returned
 | 
						// In case of no entries, a 'no entries' error will be returned
 | 
				
			||||||
	GetLastStatusForAccountID(accountID string, status *model.Status) error
 | 
						GetLastStatusForAccountID(accountID string, status *model.Status) error
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// IsUsernameAvailable checks whether a given username is available on our domain.
 | 
				
			||||||
 | 
						// Returns an error if the username is already taken, or something went wrong in the db.
 | 
				
			||||||
 | 
						IsUsernameAvailable(username string) error
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// IsEmailAvailable checks whether a given email address for a user is available on our domain.
 | 
				
			||||||
 | 
						// Returns an error if the email is already associated with an account, or something went wrong in the db.
 | 
				
			||||||
 | 
						IsEmailAvailable(email string) error
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
		USEFUL CONVERSION FUNCTIONS
 | 
							USEFUL CONVERSION FUNCTIONS
 | 
				
			||||||
	*/
 | 
						*/
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue