-
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.
Merge pull request #23 from kusitms-28th-Meetup-E/14-mainpage-api
feat(#14):Issue Detail + Topic api
- Loading branch information
Showing
5 changed files
with
56 additions
and
2 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/gwangjang/server/domain/Issue/application/dto/res/IssueDetailTopicRes.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,17 @@ | ||
package gwangjang.server.domain.Issue.application.dto.res; | ||
|
||
import lombok.*; | ||
|
||
@Getter | ||
@Builder | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class IssueDetailTopicRes { | ||
private Long issueId; | ||
private String issueTitle; | ||
private String issueDetail; | ||
private String imgUrl; | ||
private Long topicId; | ||
private String topicTitle; | ||
} |
5 changes: 4 additions & 1 deletion
5
src/main/java/gwangjang/server/domain/Issue/domain/repository/IssueCustomRepository.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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package gwangjang.server.domain.Issue.domain.repository; | ||
|
||
import gwangjang.server.domain.Issue.application.dto.res.IssueDetailTopicRes; | ||
import gwangjang.server.domain.Issue.application.dto.res.IssueRes; | ||
import gwangjang.server.domain.Issue.application.dto.res.KeywordRes; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
@Repository | ||
public interface IssueCustomRepository { | ||
Optional<IssueRes> findIssueAndTopicById(Long issueId); | ||
public Optional<KeywordRes> findKeywordsByIssueId(Long issueId); | ||
Optional<KeywordRes> findKeywordsByIssueId(Long issueId); | ||
List<IssueDetailTopicRes> getAllIssueDetailTopicRes(); | ||
} |
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