Files
LazyPM/internal/service/interfaces.go
2026-02-22 19:46:55 +01:00

36 lines
691 B
Go

package service
import (
"context"
"log/slog"
"github.com/LazyBachelor/LazyPM/internal/models"
"github.com/steveyegge/beads"
)
// ValidationFeedback holds task validation status
type ValidationFeedback struct {
Success bool
Message string
}
type App struct {
Config Config
Issues IssueService
Stats StatsService
Logger *slog.Logger
CurrentFeedback *ValidationFeedback
}
type IssueService interface {
beads.Storage
AllIssues(ctx context.Context) ([]models.Issue, error)
DeleteIssues() error
}
type StatsService interface {
Load(ctx context.Context) error
Save(ctx context.Context) error
GetStatistics() (models.Statistics, error)
}