feat:为video的getdetail添加redis缓存
This commit is contained in:
@@ -34,7 +34,7 @@ func SetRouter(db *gorm.DB, cache *rediscache.Client) *gin.Engine {
|
||||
}
|
||||
// video
|
||||
videoRepository := video.NewVideoRepository(db)
|
||||
videoService := video.NewVideoService(videoRepository)
|
||||
videoService := video.NewVideoService(videoRepository, cache)
|
||||
videoHandler := video.NewVideoHandler(videoService, accountService)
|
||||
videoGroup := r.Group("/video")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user