File tree Expand file tree Collapse file tree
src/main/java/in/koreatech/koin/domain/community/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import in .koreatech .koin .domain .community .article .model .Article ;
1111import in .koreatech .koin .domain .community .keyword .model .ArticleKeywordUserMap ;
1212import in .koreatech .koin .domain .community .keyword .model .KeywordMatchResult ;
13- import in .koreatech .koin .domain .community .keyword .repository .ArticleKeywordUserMapRepository ;
1413import lombok .RequiredArgsConstructor ;
1514
1615@ Component
17- @ RequiredArgsConstructor
1816public class KeywordExtractor {
1917
20- private final ArticleKeywordUserMapRepository articleKeywordUserMapRepository ;
21-
22- public List <KeywordMatchResult > matchKeyword (List <Article > articles , Integer authorId ) {
23- List <ArticleKeywordUserMap > articleKeywordUserMaps = articleKeywordUserMapRepository .findAll ();
18+ public List <KeywordMatchResult > matchKeyword (
19+ List <Article > articles , List <ArticleKeywordUserMap > articleKeywordUserMaps , Integer authorId
20+ ) {
2421 Set <KeywordMatchResult > keywordMatchResults = new HashSet <>();
2522
2623 for (Article article : articles ) {
You can’t perform that action at this time.
0 commit comments