-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix : contents 서비스 보낼 내가 구독한 주제 list up
- Loading branch information
1 parent
7204501
commit 037811b
Showing
5 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
.../java/gwangjang/server/domain/subscribe/application/service/SubscribeContentsUseCase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package gwangjang.server.domain.subscribe.application.service; | ||
|
||
import gwangjang.server.domain.member.domain.entity.Member; | ||
import gwangjang.server.domain.member.domain.service.MemberQueryService; | ||
import gwangjang.server.domain.subscribe.application.mapper.SubscribeMapper; | ||
import gwangjang.server.domain.subscribe.domain.service.SubscribeQueryService; | ||
import jakarta.transaction.Transactional; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
import java.util.List; | ||
|
||
@Service | ||
@Transactional | ||
@RequiredArgsConstructor | ||
public class SubscribeContentsUseCase { | ||
|
||
private final MemberQueryService memberQueryService; | ||
|
||
private final SubscribeQueryService subscribeQueryService; | ||
private final SubscribeMapper subscribeMapper = new SubscribeMapper(); | ||
|
||
public List<Long> getMySubscribeIssueList(String memberId) { | ||
Member member = memberQueryService.getMemberBySocialId(memberId); | ||
return subscribeQueryService.getMySubscribeList(member); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters