-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIN-353 Refactor budget handling and improve local testing infrastruc…
…ture Refactored budget-related code to improve readability, maintainability and testing. The new patch endpoints allow creating or updating the budget for the current month.
- Loading branch information
Showing
7 changed files
with
355 additions
and
145 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
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
12 changes: 12 additions & 0 deletions
12
fintrack-api/src/main/java/com/jongsoft/finance/rest/budget/ExpensePatchRequest.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,12 @@ | ||
package com.jongsoft.finance.rest.budget; | ||
|
||
import io.micronaut.serde.annotation.Serdeable; | ||
import jakarta.validation.constraints.Min; | ||
|
||
@Serdeable | ||
public record ExpensePatchRequest( | ||
Long expenseId, | ||
String name, | ||
@Min(0) | ||
double amount) { | ||
} |
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
Oops, something went wrong.