作者 tangxvhui

日常保存

@@ -133,7 +133,7 @@ func (repository *ArticleAndTagRepository) DomainModelToModel(from *domain.Artic @@ -133,7 +133,7 @@ func (repository *ArticleAndTagRepository) DomainModelToModel(from *domain.Artic
133 return to, err 133 return to, err
134 } 134 }
135 135
136 -// 以TagId作为分组,统计所有已有标签的文章和人员已读的文章 136 +// 小程序端 以TagId作为分组,统计所有已有标签的文章和人员已读的文章
137 func (repository *ArticleAndTagRepository) CountArticleReadGroupByTag(ctx context.Context, conn transaction.Conn, userId int64, companyId int64) ([]*domain.CountArticleTagRead, error) { 137 func (repository *ArticleAndTagRepository) CountArticleReadGroupByTag(ctx context.Context, conn transaction.Conn, userId int64, companyId int64) ([]*domain.CountArticleTagRead, error) {
138 138
139 sqlStr := `-- 首页统计数据 139 sqlStr := `-- 首页统计数据
@@ -278,6 +278,12 @@ func NewArticleRepository(cache *cache.CachedRepository) domain.ArticleRepositor @@ -278,6 +278,12 @@ func NewArticleRepository(cache *cache.CachedRepository) domain.ArticleRepositor
278 return &ArticleRepository{CachedRepository: cache} 278 return &ArticleRepository{CachedRepository: cache}
279 } 279 }
280 280
  281 +// 小程序端搜索查询文章
  282 +func (repository *ArticleRepository) SearchBy(ctx context.Context, conn transaction.Conn, userId int64, companyId int64,
  283 + tagCategory string, tagId int64, createdAt [2]int) {
  284 +
  285 +}
  286 +
281 // select * 287 // select *
282 // from article 288 // from article
283 // join article_and_tag on article.id = article_and_tag.article_id 289 // join article_and_tag on article.id = article_and_tag.article_id