作者 庄敏学

合并分支 'dev' 到 'test'

草稿报错修复



查看合并请求 !6
@@ -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)),