Skip to content

Commit deb74c9

Browse files
committed
feat: 대시보드 응답 객체에 빌린 물품 개수 추가
1 parent ceff1e8 commit deb74c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/kotlin/site/billilge/api/backend/domain/rental/dto/response/DashboardResponse.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ data class DashboardResponse(
1919
val itemName: String,
2020
@field:Schema(description = "물품 아이콘 URL", example = "https://www.example.com/test.svg")
2121
val itemImageUrl: String,
22+
@field:Schema(description = "물품 개수", example = "10")
23+
val rentedCount: Int,
2224
@field:Schema(description = "대여자 이름", example = "황수민")
2325
val renterName: String,
2426
@field:Schema(description = "대여자 학번", example = "20211234")
@@ -35,6 +37,7 @@ data class DashboardResponse(
3537
rentalHistoryId = rentalHistory.id!!,
3638
itemName = rentalHistory.item.name,
3739
itemImageUrl = rentalHistory.item.imageUrl,
40+
rentedCount = rentalHistory.rentedCount,
3841
renterName = rentalHistory.member.name,
3942
renterStudentId = rentalHistory.member.studentId,
4043
status = rentalHistory.rentalStatus,

0 commit comments

Comments
 (0)