(ctx context.Context, keywords []string)
| 38 | } |
| 39 | |
| 40 | func (s *searchRepository) SearchComments(ctx context.Context, keywords []string) ([]domain.CommentSearch, error) { |
| 41 | comments, err := s.dao.SearchComments(ctx, keywords) |
| 42 | return s.toDomainCommentSearch(comments), err |
| 43 | } |
| 44 | |
| 45 | func (s *searchRepository) SearchPosts(ctx context.Context, keywords []string) ([]domain.PostSearch, error) { |
| 46 | posts, err := s.dao.SearchPosts(ctx, keywords) |
nothing calls this directly
no test coverage detected