-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from EWHA-CAPSTONE-COOKSAVE/feature/history
[차소연] 통계 요약 조회 기능 구현
- Loading branch information
Showing
5 changed files
with
120 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/CookSave/CookSaveback/History/dto/HighlightHistoryDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package CookSave.CookSaveback.History.dto; | ||
|
||
import CookSave.CookSaveback.History.domain.History; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
import java.time.LocalDate; | ||
|
||
@Getter | ||
public class HighlightHistoryDto { | ||
private String image; | ||
private String name; | ||
private Integer total; | ||
private LocalDate createdAt; | ||
|
||
@Builder | ||
public HighlightHistoryDto(History history){ | ||
this.image = history.getImage(); | ||
this.name = history.getName(); | ||
this.total = history.getTotal(); | ||
this.createdAt = history.getCreatedAt(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/CookSave/CookSaveback/History/dto/HistoryHighlightResDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package CookSave.CookSaveback.History.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class HistoryHighlightResDto { | ||
private Integer percentage; | ||
private Integer count; | ||
private Integer budget; | ||
private Integer monthExpense; | ||
private Integer balance; | ||
private Integer average; | ||
private Integer previousAverage; | ||
private List<HighlightHistoryDto> highlightHistoryDtoList; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters