feat: migrate watchlist module to modular domain pattern

This commit is contained in:
2026-05-13 10:33:24 +02:00
parent c32ffd54de
commit c94a2fed04
6 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
package watchlist
import (
"mal/internal/server"
"mal/internal/watchlist/handler"
"mal/internal/watchlist/repository"
"mal/internal/watchlist/service"
"go.uber.org/fx"
)
var Module = fx.Options(
fx.Provide(
repository.NewWatchlistRepository,
service.NewWatchlistService,
handler.NewWatchlistHandler,
),
fx.Provide(
server.AsRouteRegister(func(h *handler.WatchlistHandler) server.RouteRegister {
return h
}),
),
)