From 1a5941cd8958c204500c44b9e5f27fe14874b256 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Mon, 4 Nov 2024 17:53:38 +0200 Subject: [PATCH] Add types.DbPayment --- types/types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/types.go b/types/types.go index ced07f1..c41a8c7 100644 --- a/types/types.go +++ b/types/types.go @@ -64,3 +64,13 @@ type DbType struct { Comment string `json:"comment" example:""` Color string `json:"color" example:"red"` } + +type DbPayment struct { + ID uint `json:"id" example:"1"` + CardID uint `json:"card_id" example:"1"` + CategoryID uint `json:"category_id" example:"1"` + Title string `json:"title" example:"Veggies"` + Descr string `json:"description" example:""` + Note string `json:"not" example:"I'm a teapot"` + Date time.Time `json:"date" example:"29/11/2001 12:00"` +}