7 lines
186 B
Go
7 lines
186 B
Go
package domain
|
|
|
|
type AccountRepository interface {
|
|
Insert(account Account) (int, error)
|
|
FetchOneByUsername(username string) (*Account, error)
|
|
FetchOneById(id int) (*Account, error)
|
|
}
|