e87b7df979
Update module name and all imports from habit-tracker-api to apocapoc-api. This reflects the project's new branding as part of the apocapoc ecosystem (apocapoc-api, apocapoc-web, apocapoc-android).
15 lines
371 B
Go
15 lines
371 B
Go
package repositories
|
|
|
|
import (
|
|
"context"
|
|
|
|
"apocapoc-api/internal/domain/entities"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
Create(ctx context.Context, user *entities.User) error
|
|
FindByID(ctx context.Context, id string) (*entities.User, error)
|
|
FindByEmail(ctx context.Context, email string) (*entities.User, error)
|
|
Update(ctx context.Context, user *entities.User) error
|
|
}
|