提取cover服务
All checks were successful
Go CI / test-and-build (push) Successful in 11s

This commit is contained in:
2026-04-08 20:44:04 +08:00
parent 55c017f60d
commit 4bc160284d
6 changed files with 88 additions and 60 deletions

View File

@@ -29,8 +29,9 @@ func main() {
mediaRepo := repository.NewMediaRepository(GetDB())
libraryService := service.NewLibraryService(libraryRepo, artistRepo, albumRepo, songRepo, mediaRepo)
songService := service.NewSongService(songRepo, mediaRepo)
libraryController := controller.NewLibraryController(libraryService)
songController := controller.NewSongController(songService)
coverService := service.NewCoverService(mediaRepo, songRepo, albumRepo)
libraryController := controller.NewLibraryController(libraryService, coverService)
songController := controller.NewSongController(songService, coverService)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello World!"))