(dao dao.SearchDAO)
| 32 | } |
| 33 | |
| 34 | func NewSearchRepository(dao dao.SearchDAO) SearchRepository { |
| 35 | return &searchRepository{ |
| 36 | dao: dao, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func (s *searchRepository) SearchComments(ctx context.Context, keywords []string) ([]domain.CommentSearch, error) { |
| 41 | comments, err := s.dao.SearchComments(ctx, keywords) |
no outgoing calls