From 1c4756c75832badf36bf486b1329bd74a534ba33 Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 6 Nov 2024 19:45:54 +0200 Subject: [PATCH] Add username for Account type in types package --- types/types.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/types.go b/types/types.go index d69f811..10e29ae 100644 --- a/types/types.go +++ b/types/types.go @@ -10,8 +10,9 @@ type User struct { // User Account type Account struct { - ID uint `json:"id" example:"1"` - Token string `json:"token" example:"Fvs-MnxiEs5dnqMp2mSDIJigPbiIUs6Snk1xxiqPmUc="` + ID uint `json:"id" example:"1"` + Token string `json:"token" example:"Fvs-MnxiEs5dnqMp2mSDIJigPbiIUs6Snk1xxiqPmUc"` + Username string `json:"username" example:"testUser"` } type Message struct {