拆分LibraryRepository
All checks were successful
Go CI / test-and-build (push) Successful in 11s

This commit is contained in:
2026-04-08 14:42:52 +08:00
parent 9637ad2476
commit 55c017f60d
8 changed files with 414 additions and 377 deletions

View File

@@ -21,11 +21,11 @@ func NewSongService(songRepo *repository.SongRepository, mediaRepo *repository.M
}
}
func (s *SongService) GetAllWithDetails() ([]repository.SongDetail, error) {
func (s *SongService) GetAllWithDetails() ([]model.SongDetail, error) {
return s.songRepo.GetAllWithDetails()
}
func (s *SongService) GetByIDWithDetails(id int) (repository.SongDetail, error) {
func (s *SongService) GetByIDWithDetails(id int) (model.SongDetail, error) {
return s.songRepo.GetWithDetails(id)
}