18 lines
654 B
Go
18 lines
654 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
|
|
//
|
|
//GetUserByEmailPhone(ctx context.Context, emailPhone EmailPhone) (domain.User, error)
|
|
}
|