16 lines
562 B
Go
16 lines
562 B
Go
package user
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/SamuelTariku/FortuneBet-Backend/internal/domain"
|
|
)
|
|
|
|
type UserStore interface {
|
|
CreateUser(ctx context.Context, CfirstName, lastName, email, phoneNumber, password, role string, verified bool) (domain.User, error)
|
|
GetUserByID(ctx context.Context, id int64) (domain.User, error)
|
|
GetAllUsers(ctx context.Context) ([]domain.User, error)
|
|
UpdateUser(ctx context.Context, id int64, firstName, lastName, email, phoneNumber, password, role string, verified bool) error
|
|
DeleteUser(ctx context.Context, id int64) error
|
|
}
|