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 @@ -5,6 +5,7 @@

@Schema(description = "보유 러니모 목록 조회 응답")
public record GetMyRunimoListResponse(
Long totalDistanceInMeters,
List<RunimoInfo> runimos
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public GetMyRunimoListResponse getMyRunimoList(Long userId) {
HatchHttpResponseCode.HATCH_USER_NOT_FOUND));

return new GetMyRunimoListResponse(
user.getTotalDistanceInMeters(),
RunimoSimpleModel.toDtoList(models, user.getMainRunimoId()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void tearDown() {

.body("code", equalTo("MSH2001"))
.body("payload.runimos", hasSize(3))
.body("payload.total_distance_in_meters", equalTo(10000))

.body("payload.runimos[0].id", equalTo(1))
.body("payload.runimos[0].code", equalTo("R-101"))
Expand Down