From cfb97485e3ea293f145ec1643dc97000d8ef26de Mon Sep 17 00:00:00 2001 From: qowevisa Date: Tue, 29 Oct 2024 12:27:26 +0200 Subject: [PATCH] Add DbType for API requests --- types/types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/types.go b/types/types.go index 12b3fd1..e78c39c 100644 --- a/types/types.go +++ b/types/types.go @@ -59,3 +59,9 @@ type DbIncome struct { Date time.Time `json:"date" example:"29/11/2001 12:00"` UserID uint `json:"user_id" example:"1"` } + +type DbType struct { + Name string `json:"name" example:"Medicine"` + Comment string `json:"comment" example:""` + Color string `json:"color" example:"red"` +}