From bf9628d1d777fb2ac08ef93141521527d24ef98b Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 16 Nov 2024 20:31:25 +0200 Subject: [PATCH] Add types.DbTransfer --- types/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/types.go b/types/types.go index 2dc9c92..4da3759 100644 --- a/types/types.go +++ b/types/types.go @@ -89,3 +89,11 @@ type DbExpense struct { Comment string `json:"comment" example:"pizza"` Date time.Time `json:"date" example:"29/11/2001 12:00"` } + +type DbTransfer struct { + ID uint `json:"id" example:"1"` + FromCardID uint `json:"from_card_id" example:"1"` + ToCardID uint `json:"to_card_id" example:"1"` + Value uint64 `json:"value" example:"20000"` + Date time.Time `json:"date" example:"29/11/2001 12:00"` +}