From 79eb50f3758c9596c12f48440f092800e348a3e1 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 20 Nov 2024 20:28:42 +0200 Subject: [PATCH] Add types.DbCurrency to types package --- types/types.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/types.go b/types/types.go index 3c59a3b..ac0002b 100644 --- a/types/types.go +++ b/types/types.go @@ -113,6 +113,13 @@ type DbMetric struct { Short string `json:"short" example:"kg"` } +type DbCurrency struct { + ID uint `json:"id" example:"1"` + Name string `json:"name" example:"Dollar"` + ISOName string `json:"iso_name" example:"USD"` + Symbol string `json:"symbol" example:"$"` +} + type Payment struct { ID uint `json:"id" example:"1"` CardID uint `json:"card_id" example:"1"`