正在显示
1 个修改的文件
包含
8 行增加
和
7 行删除
@@ -83,13 +83,14 @@ func NewServiceContext(c config.Config) *ServiceContext { | @@ -83,13 +83,14 @@ func NewServiceContext(c config.Config) *ServiceContext { | ||
83 | LogRequest: middleware.NewLogRequestMiddleware(c.LogRequest).Handle, | 83 | LogRequest: middleware.NewLogRequestMiddleware(c.LogRequest).Handle, |
84 | MiniProgram: miniProgram, | 84 | MiniProgram: miniProgram, |
85 | 85 | ||
86 | - ArticleBackupRepository: repository.NewArticleBackupRepository(cache.NewCachedRepository(mlCache)), | ||
87 | - ArticleCommentRepository: repository.NewArticleCommentRepository(cache.NewCachedRepository(mlCache)), | ||
88 | - ArticleDraftRepository: repository.NewArticleDraftRepository(cache.NewCachedRepository(mlCache)), | ||
89 | - ArticleRepository: repository.NewArticleRepository(cache.NewCachedRepository(mlCache)), | ||
90 | - ArticleSectionRepository: repository.NewArticleSectionRepository(cache.NewCachedRepository(mlCache)), | ||
91 | - ArticleAndTagRepository: repository.NewArticleAndTagRepository(cache.NewCachedRepository(mlCache)), | ||
92 | - ArticleCategoryRepository: repository.NewArticleCategoryRepository(cache.NewCachedRepository(mlCache)), | 86 | + ArticleBackupRepository: repository.NewArticleBackupRepository(cache.NewCachedRepository(mlCache)), |
87 | + ArticleCommentRepository: repository.NewArticleCommentRepository(cache.NewCachedRepository(mlCache)), | ||
88 | + ArticleDraftRepository: repository.NewArticleDraftRepository(cache.NewCachedRepository(mlCache)), | ||
89 | + ArticleRepository: repository.NewArticleRepository(cache.NewCachedRepository(mlCache)), | ||
90 | + ArticleSectionRepository: repository.NewArticleSectionRepository(cache.NewCachedRepository(mlCache)), | ||
91 | + ArticleAndTagRepository: repository.NewArticleAndTagRepository(cache.NewCachedRepository(mlCache)), | ||
92 | + ArticleCategoryRepository: repository.NewArticleCategoryRepository(cache.NewCachedRepository(mlCache)), | ||
93 | + ArticleDraftOperationRepository: repository.NewArticleDraftOperationRepository(cache.NewCachedRepository(mlCache)), | ||
93 | 94 | ||
94 | CompanyRepository: repository.NewCompanyRepository(cache.NewCachedRepository(mlCache)), | 95 | CompanyRepository: repository.NewCompanyRepository(cache.NewCachedRepository(mlCache)), |
95 | DepartmentRepository: repository.NewDepartmentRepository(cache.NewCachedRepository(mlCache)), | 96 | DepartmentRepository: repository.NewDepartmentRepository(cache.NewCachedRepository(mlCache)), |
-
请 注册 或 登录 后发表评论