...
|
...
|
@@ -83,13 +83,14 @@ func NewServiceContext(c config.Config) *ServiceContext { |
|
|
LogRequest: middleware.NewLogRequestMiddleware(c.LogRequest).Handle,
|
|
|
MiniProgram: miniProgram,
|
|
|
|
|
|
ArticleBackupRepository: repository.NewArticleBackupRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleCommentRepository: repository.NewArticleCommentRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleDraftRepository: repository.NewArticleDraftRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleRepository: repository.NewArticleRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleSectionRepository: repository.NewArticleSectionRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleAndTagRepository: repository.NewArticleAndTagRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleCategoryRepository: repository.NewArticleCategoryRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleBackupRepository: repository.NewArticleBackupRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleCommentRepository: repository.NewArticleCommentRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleDraftRepository: repository.NewArticleDraftRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleRepository: repository.NewArticleRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleSectionRepository: repository.NewArticleSectionRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleAndTagRepository: repository.NewArticleAndTagRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleCategoryRepository: repository.NewArticleCategoryRepository(cache.NewCachedRepository(mlCache)),
|
|
|
ArticleDraftOperationRepository: repository.NewArticleDraftOperationRepository(cache.NewCachedRepository(mlCache)),
|
|
|
|
|
|
CompanyRepository: repository.NewCompanyRepository(cache.NewCachedRepository(mlCache)),
|
|
|
DepartmentRepository: repository.NewDepartmentRepository(cache.NewCachedRepository(mlCache)),
|
...
|
...
|
|