From e608e64cce7103ef6684469ea222d3a42f001e84 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sun, 24 Nov 2024 11:34:05 +0200 Subject: [PATCH] Add Card and ShowValue to types.DbExpense --- types/types.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/types.go b/types/types.go index e794c8d..9f02e09 100644 --- a/types/types.go +++ b/types/types.go @@ -82,6 +82,9 @@ type DbExpense struct { Value uint64 `json:"value" example:"20000"` Comment string `json:"comment" example:"pizza"` Date time.Time `json:"date" example:"29/11/2001 12:00"` + // Purely UI things + Card DbCard `json:"card"` + ShowValue string `json:"show_value" example:"10.35$"` } type DbTransfer struct {