From ffc4344adfc7473e3b58c2e54cb020620b1ea6a4 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sat, 3 Aug 2024 08:06:07 +0300 Subject: [PATCH] Add Message and DbCard types to types --- types/types.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/types/types.go b/types/types.go index 5f186e6..a37affd 100644 --- a/types/types.go +++ b/types/types.go @@ -12,6 +12,17 @@ type Account struct { Token string `json:"token" example:"Fvs-MnxiEs5dnqMp2mSDIJigPbiIUs6Snk1xxiqPmUc="` } +type Message struct { + Message string `json:"message" example:"Success!"` +} + type ErrorResponse struct { Message string `json:"message" example:"Error: you stink"` } + +type DbCard struct { + Name string `json:"name" example:"CreditCard"` + Value uint64 `json:"value" example:"1000"` + HaveCreditLine bool `json:"have_credit_line" example:"true"` + CreditLine uint64 `json:"credit_line" example:"500000"` +}