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 @@ -3,7 +3,6 @@
import static com.server.running_handai.global.response.ResponseCode.*;

import com.server.running_handai.domain.bookmark.dto.BookmarkedCourseDetailDto;
import com.server.running_handai.domain.bookmark.dto.BookmarkedCourseInfoDto;
import com.server.running_handai.domain.bookmark.service.BookmarkService;
import com.server.running_handai.domain.course.entity.Area;
import com.server.running_handai.global.oauth.CustomOAuth2User;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@JsonPropertyOrder({
"bookmarkId",
"courseId",
"courseName",
"thumbnailUrl",
"distance",
"duration",
Expand All @@ -16,6 +17,7 @@
public interface BookmarkedCourseInfoDto {
long getBookmarkId();
long getCourseId();
String getCourseName();
String getThumbnailUrl();

@JsonIgnore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public record MyBookmarkInfoDto(
long bookmarkId,
long courseId,
String courseName,
String thumbnailUrl,
int bookmarkCount,
boolean isBookmarked
Expand All @@ -11,6 +12,7 @@ public static MyBookmarkInfoDto from(BookmarkedCourseInfoDto courseInfoDto) {
return new MyBookmarkInfoDto(
courseInfoDto.getBookmarkId(),
courseInfoDto.getCourseId(),
courseInfoDto.getCourseName(),
courseInfoDto.getThumbnailUrl(),
courseInfoDto.getBookmarkCount(),
courseInfoDto.getIsBookmarked()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public interface BookmarkRepository extends JpaRepository<Bookmark, Long> {
@Query(value = "SELECT "
+ "b.id AS bookmarkId, "
+ "c.id AS courseId, "
+ "c.name AS courseName, "
+ "ci.imgUrl AS thumbnailUrl, "
+ "c.distance AS rawDistance, "
+ "c.duration AS duration, "
Expand All @@ -63,6 +64,7 @@ public interface BookmarkRepository extends JpaRepository<Bookmark, Long> {
@Query(value = "SELECT "
+ "b.id AS bookmarkId, "
+ "c.id AS courseId, "
+ "c.name AS courseName, "
+ "ci.imgUrl AS thumbnailUrl, "
+ "c.distance AS rawDistance, "
+ "c.duration AS duration, "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class MemberService {
private static final int MY_COURSE_PREVIEW_MAX_COUNT = 3;

private final MemberRepository memberRepository;
private final BookmarkRepository bookmarkRepository;
private final JwtProvider jwtProvider;
private final BookmarkService bookmarkService;
private final CourseService courseService;
Expand Down