作者 yangfu

Merge branch 'dev' into test

@@ -83,12 +83,13 @@ func NewServiceContext(c config.Config) *ServiceContext { @@ -83,12 +83,13 @@ 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)), 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)),
92 93
93 CompanyRepository: repository.NewCompanyRepository(cache.NewCachedRepository(mlCache)), 94 CompanyRepository: repository.NewCompanyRepository(cache.NewCachedRepository(mlCache)),
94 DepartmentRepository: repository.NewDepartmentRepository(cache.NewCachedRepository(mlCache)), 95 DepartmentRepository: repository.NewDepartmentRepository(cache.NewCachedRepository(mlCache)),