From ead7153cc4b47726182faca5cac8846f23668df8 Mon Sep 17 00:00:00 2001 From: Leon <147289645+LeoninCS@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:34:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=80=82=E9=85=8D=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/http/router.go b/internal/http/router.go index dcc5d2e..8c5d0a4 100644 --- a/internal/http/router.go +++ b/internal/http/router.go @@ -33,7 +33,7 @@ func SetRouter(db *gorm.DB) *gin.Engine { // video videoRepository := video.NewVideoRepository(db) videoService := video.NewVideoService(videoRepository) - videoHandler := video.NewVideoHandler(videoService) + videoHandler := video.NewVideoHandler(videoService, accountService) videoGroup := r.Group("/video") { videoGroup.POST("/listByAuthorID", videoHandler.ListByAuthorID) @@ -62,7 +62,7 @@ func SetRouter(db *gorm.DB) *gin.Engine { // feed feedRepository := feed.NewFeedRepository(db) - feedService := feed.NewFeedService(feedRepository) + feedService := feed.NewFeedService(feedRepository, likeRepository) feedHandler := feed.NewFeedHandler(feedService) feedGroup := r.Group("/feed") {