feat(watchlist): add company identity catalog
Embed a pinned FinanceDatabase equity snapshot, add authenticated company search and identity-based follows, preserve legacy assets, and map selected Yahoo symbols for collection. Refs #19 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"github.com/tradarr/backend/internal/ai"
|
||||
"github.com/tradarr/backend/internal/api"
|
||||
"github.com/tradarr/backend/internal/api/handlers"
|
||||
"github.com/tradarr/backend/internal/companycatalog"
|
||||
"github.com/tradarr/backend/internal/config"
|
||||
"github.com/tradarr/backend/internal/crypto"
|
||||
"github.com/tradarr/backend/internal/generation"
|
||||
@ -18,6 +19,7 @@ import (
|
||||
)
|
||||
|
||||
type Dependencies struct {
|
||||
CompanyCatalog companycatalog.CompanyCatalog
|
||||
LayaRanker generation.LayaRanker
|
||||
Feeds map[string]scraper.Scraper
|
||||
IndexSearcher indices.IndexSearcher
|
||||
@ -47,6 +49,9 @@ func New(repo *models.Repository, cfg *config.Config, deps Dependencies) *App {
|
||||
h := handlers.New(repo, cfg, enc, registry, pipeline, sched)
|
||||
h.SetGenerationUseCase(uc)
|
||||
h.SetIndexSearcher(deps.IndexSearcher)
|
||||
if deps.CompanyCatalog != nil {
|
||||
h.SetCompanyCatalog(deps.CompanyCatalog)
|
||||
}
|
||||
return &App{Router: api.SetupRouter(h, cfg.JWTSecret), scheduler: sched}
|
||||
}
|
||||
func (a *App) Close() { a.scheduler.Stop() }
|
||||
|
||||
Reference in New Issue
Block a user