From f4342ba019a8a1e29d54cd6ea8678b4c8932a2f8 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Tue, 19 Nov 2024 10:13:19 +0200 Subject: [PATCH] Add types.DbMetric type to types package --- types/types.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/types.go b/types/types.go index ef18906..77f634b 100644 --- a/types/types.go +++ b/types/types.go @@ -116,3 +116,9 @@ type DbItemSearch struct { CategoryID uint `json:"category_id" example:"1"` TypeID uint `json:"type_id" example:"1"` } + +type DbMetric struct { + Value uint8 `json:"value" example:"1"` + Name string `json:"name" example:"Kilogram"` + Short string `json:"short" example:"kg"` +}