Skip to content

Commit

Permalink
Merge pull request #108 from Leets-Official/feat/#107/회비-사용처-추가
Browse files Browse the repository at this point in the history
Feat #108 영수증 사용처 추가
  • Loading branch information
hyxklee authored Jan 18, 2025
2 parents 8c751ab + ff7469a commit bd631bc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,32 @@
public class ReceiptDTO {

public record Response(
Long id,
String description,
Integer amount,
LocalDate date,
List<FileResponse> fileUrls
) {}
Long id,
String description,
String source,
Integer amount,
LocalDate date,
List<FileResponse> fileUrls
) {
}

public record Save(
String description,
String source,
@NotNull Integer amount,
@NotNull LocalDate date,
@NotNull Integer cardinal,
@Valid List<@NotNull FileSaveRequest> files
) {}
) {
}

public record Update(
String description,
String source,
@NotNull Integer amount,
@NotNull LocalDate date,
@NotNull Integer cardinal,
@Valid List<@NotNull FileSaveRequest> files
) {}
) {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public class Receipt extends BaseEntity {

private String description;

private String source;

private Integer amount;

private LocalDate date;
Expand All @@ -37,6 +39,7 @@ public class Receipt extends BaseEntity {

public void update(ReceiptDTO.Update dto){
this.description = dto.description();
this.source = dto.source();
this.amount = dto.amount();
this.date = dto.date();
}
Expand Down

0 comments on commit bd631bc

Please sign in to comment.