From 9f4a9e3a8377e5b59dbd6d661fab268377bd16e6 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 14 Aug 2024 18:20:51 +0300 Subject: [PATCH] Add DbIncome --- types/types.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/types.go b/types/types.go index 38891b7..12b3fd1 100644 --- a/types/types.go +++ b/types/types.go @@ -50,3 +50,12 @@ type DbDebt struct { Finished bool `json:"finished" example:"false"` UserID uint `json:"user_id" example:"1"` } + +type DbIncome struct { + ID uint `json:"id" example:"1"` + CardID uint `json:"card_id" example:"1"` + Comment string `json:"comment" example:"pizza"` + Value uint64 `json:"value" example:"20000"` + Date time.Time `json:"date" example:"29/11/2001 12:00"` + UserID uint `json:"user_id" example:"1"` +}