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 @@ -6,4 +6,5 @@ public record ClothListResponse(
@Schema(description = "옷 ID", example = "1") Long clothId,
@Schema(description = "옷 이미지 url", example = "https://example.jpg") String ImageUrl,
@Schema(description = "옷 브랜드 이름", example = "나이키") String brand,
@Schema(description = "옷 이름", example = "파란색 후드") String name) {}
@Schema(description = "옷 이름", example = "파란색 후드") String name,
@Schema(description = "옷 카테고리", example = "후드티") String category) {}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ public Slice<ClothListResponse> findAllMemberClothesByCategoriesAndSeasons(
cloth.id,
cloth.clothImageUrl,
cloth.brand,
cloth.name))
cloth.name,
cloth.category.name))
.from(cloth)
.where(
cloth.member.id.eq(memberId),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,18 @@ class 옷_목록_조회_요청_시 {
// given
List<ClothListResponse> clothListResponses =
List.of(
new ClothListResponse(1L, "testImageUrl1", "testBrand1", "testName1"),
new ClothListResponse(2L, "testImageUrl2", "testBrand2", "testName2"));
new ClothListResponse(
1L,
"testImageUrl1",
"testBrand1",
"testName1",
"testCategory1"),
new ClothListResponse(
2L,
"testImageUrl2",
"testBrand2",
"testName2",
"testCategory2"));

given(clothService.getClothes(null, 2, SortDirection.ASC, 1L, List.of(Season.SPRING)))
.willReturn(new SliceResponse<>(clothListResponses, true));
Expand Down