-
Notifications
You must be signed in to change notification settings - Fork 0
[TB-30] 영수증 카테고리별 지출 조회 API 변경 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
635ebb0
e93066a
b1449de
0d3a5fd
72a4d6b
3d19786
c2b876b
2eaf7af
4e12b87
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| package com.ClubAccount_BE.receipt.adapter.in.web.dto.response; | ||
|
|
||
| import com.ClubAccount_BE.receipt.domain.ReceiptCategoryExpenseResult; | ||
| import io.swagger.v3.oas.annotations.media.Schema; | ||
| import java.math.BigDecimal; | ||
| import lombok.Builder; | ||
|
|
||
| @Builder | ||
| public record ReceiptCategoryExpenseResponse( | ||
|
Check warning on line 9 in src/main/java/com/ClubAccount_BE/receipt/adapter/in/web/dto/response/ReceiptCategoryExpenseResponse.java
|
||
| @Schema(description = "회식비 카테고리 총 지출") | ||
| BigDecimal groupDiningExpense, | ||
|
|
||
| @Schema(description = "물품 구매비 카테고리 총 지출") | ||
| BigDecimal supplyPurchaseExpense, | ||
|
|
||
| @Schema(description = "정기 구독비 카테고리 총 지출") | ||
| BigDecimal subscriptionExpense, | ||
|
|
||
| @Schema(description = "대관비 카테고리 총 지출") | ||
| BigDecimal venueRentalExpense, | ||
|
|
||
| @Schema(description = "기타 카테고리 총 지출") | ||
| BigDecimal otherExpense | ||
| ) { | ||
|
|
||
| public static ReceiptCategoryExpenseResponse of(ReceiptCategoryExpenseResult result) { | ||
| return ReceiptCategoryExpenseResponse.builder() | ||
| .groupDiningExpense(result.getGroupDiningExpense()) | ||
| .supplyPurchaseExpense(result.getSupplyPurchaseExpense()) | ||
| .subscriptionExpense(result.getSubscriptionExpense()) | ||
| .venueRentalExpense(result.getVenueRentalExpense()) | ||
| .otherExpense(result.getOtherExpense()) | ||
| .build(); | ||
|
Check warning on line 33 in src/main/java/com/ClubAccount_BE/receipt/adapter/in/web/dto/response/ReceiptCategoryExpenseResponse.java
|
||
| } | ||
|
|
||
| } | ||
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.