From 137d3437739b25c2feeed747efc19545e46a1292 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 16 Nov 2024 11:42:43 +0200 Subject: [PATCH] Add types.DbExpense --- types/types.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/types.go b/types/types.go index 56f26ea..2dc9c92 100644 --- a/types/types.go +++ b/types/types.go @@ -80,3 +80,12 @@ type Session struct { ID string `json:"id"` UserID uint `json:"user_id" example:"1"` } + +type DbExpense struct { + ID uint `json:"id" example:"1"` + CardID uint `json:"card_id" example:"1"` + TypeID uint `json:"type_id" example:"1"` + Value uint64 `json:"value" example:"20000"` + Comment string `json:"comment" example:"pizza"` + Date time.Time `json:"date" example:"29/11/2001 12:00"` +}