From 55ea7409ed69ee6527fd7ef5b32fe5e3e1b634c9 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 31 Oct 2024 10:07:48 +0200 Subject: [PATCH] Add ID field to types.DbType --- types/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/types/types.go b/types/types.go index e78c39c..b15b82b 100644 --- a/types/types.go +++ b/types/types.go @@ -61,6 +61,7 @@ type DbIncome struct { } type DbType struct { + ID uint `json:"id" example:"1"` Name string `json:"name" example:"Medicine"` Comment string `json:"comment" example:""` Color string `json:"color" example:"red"`