make service handling of non-error-not-founds explicit
This commit is contained in:
parent
6eb204bfce
commit
32bcb894ee
2 changed files with 24 additions and 3 deletions
|
|
@ -5,6 +5,8 @@ import "arimelody-web/model"
|
|||
type AccountRepository interface {
|
||||
GetAll() ([]*model.Account, error)
|
||||
GetCount() (int, error)
|
||||
// Fetches an account by ID, returning an error if one was encountered.
|
||||
// If the account does not exist, both response fields are nil.
|
||||
GetByID(id string) (*model.Account, error)
|
||||
GetByUsername(username string) (*model.Account, error)
|
||||
GetByEmail(email string) (*model.Account, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue