Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public record FeedShowSingleResponse(
String aliasName,
String aliasColor,
String postDate,
String bookTitle,
String isbn,
String bookAuthor,
String contentBody,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ FeedShowByUserResponse.FeedDto toFeedShowByUserResponse(
@Mapping(target = "aliasName", source = "feedCreator.alias.value")
@Mapping(target = "aliasColor", source = "feedCreator.alias.color")
@Mapping(target = "postDate", expression = "java(DateUtil.formatBeforeTime(feed.getCreatedAt()))")
@Mapping(target = "bookTitle", source = "book.title")
@Mapping(target = "isbn", source = "book.isbn")
@Mapping(target = "bookAuthor", source = "book.authorName")
@Mapping(target = "contentBody", source = "feed.content")
Expand All @@ -87,8 +88,7 @@ FeedShowByUserResponse.FeedDto toFeedShowByUserResponse(
@Mapping(target = "isLiked", source = "isLiked")
@Mapping(target = "isWriter", source = "feedCreator.id", qualifiedByName = "isWriter")
@Mapping(target = "tagList", source = "feed.tagList", qualifiedByName = "mapTagList")
FeedShowSingleResponse toFeedShowSingleResponse(Feed feed, User feedCreator, Book book, boolean isSaved, boolean isLiked,
@Context Long userId);
FeedShowSingleResponse toFeedShowSingleResponse(Feed feed, User feedCreator, Book book, boolean isSaved, boolean isLiked, @Context Long userId);

@Named("mapContentList")
default String[] mapContentList(List<Content> contentList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class RoomQueryController {

@Operation(
summary = "모집중인 방 검색",
description = "검색어(= 방이름 or 첵제목), 카테고리 와 매핑되는 모집중인 방을 검색합니다. 공개/비공개 방 모두 검색 가능합니다."
description = "검색어(= 방이름 or 책제목), 카테고리 와 매핑되는 모집중인 방을 검색합니다. 공개/비공개 방 모두 검색 가능합니다."
)
@ExceptionDescription(ROOM_SEARCH)
@GetMapping("/rooms/search")
Expand Down