init service
This commit is contained in:
parent
9bffb2e39d
commit
336bd34bd3
3 changed files with 141 additions and 0 deletions
|
|
@ -6,6 +6,8 @@ import (
|
|||
)
|
||||
|
||||
type Store interface {
|
||||
// CreateUser inserts a new row into the users table.
|
||||
// The method overrides the CreatedAt and UpdatedAt fields.
|
||||
CreateUser(ctx context.Context, u *User) error
|
||||
GetUserByID(ctx context.Context, id string) (*User, error)
|
||||
GetUserByEmail(ctx context.Context, email string) (*User, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue