Added ExpenseAdder Endpoint

This commit is contained in:
2026-03-01 12:46:40 +01:00
parent 6a974cbbf1
commit 54a8292234
6 changed files with 177 additions and 29 deletions

View File

@@ -8,10 +8,19 @@ type User struct {
}
type Expense struct {
ID string `json:"id"`
Amount int `json:"amt"`
Description string `json:"desc"`
Payer User `json:"payer"`
Debtors []User `json:"debtors"`
ID string `json:"id"`
PayerID string `json:"payer_id"`
Amount int64 `json:"amount"`
Title string `json:"title"`
Description string `json:"description"`
Attachments []string `json:"attachments"`
CreatedAt int64 `json:"created_at"`
LastUpdatedAt int64 `json:"last_updated_at"`
}
type ExpenseShare struct {
ID string `json:"id"`
ExpenseID string `json:"expense_id"`
UserID string `json:"user_id"`
ShareCents int64 `json:"share_cents"`
}