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).
17 lines
511 B
Go
17 lines
511 B
Go
package repositories
|
|
|
|
import (
|
|
"context"
|
|
|
|
"apocapoc-api/internal/domain/entities"
|
|
)
|
|
|
|
type HabitRepository interface {
|
|
Create(ctx context.Context, habit *entities.Habit) error
|
|
FindByID(ctx context.Context, id string) (*entities.Habit, error)
|
|
FindByUserID(ctx context.Context, userID string) ([]*entities.Habit, error)
|
|
FindActiveByUserID(ctx context.Context, userID string) ([]*entities.Habit, error)
|
|
Update(ctx context.Context, habit *entities.Habit) error
|
|
Delete(ctx context.Context, id string) error
|
|
}
|