From 9e6c97e532ef9970fc975123abaca86c4ce9b6b1 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 31 Aug 2024 16:09:58 -0700 Subject: Update type names --- server/admin/handler.go | 4 ++-- server/admin/models.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server/admin') diff --git a/server/admin/handler.go b/server/admin/handler.go index 5fd1fee..f2d5807 100644 --- a/server/admin/handler.go +++ b/server/admin/handler.go @@ -114,6 +114,6 @@ func (adminHandler *AdminHandler) marshalResponse(guests []guest.Guest, token st return json.Marshal(loginResponse) } -func (adminHandler *AdminHandler) createLoginResponse(guests []guest.Guest, token string) *LoginResponse { - return &LoginResponse{guests, token} +func (adminHandler *AdminHandler) createLoginResponse(guests []guest.Guest, token string) *Login { + return &Login{guests, token} } diff --git a/server/admin/models.go b/server/admin/models.go index d9b8232..1699381 100644 --- a/server/admin/models.go +++ b/server/admin/models.go @@ -15,7 +15,7 @@ type Claims struct { jwt.RegisteredClaims } -type LoginResponse struct { +type Login struct { Guests []guest.Guest `json:"guests"` Token string `json:"token"` } -- cgit v1.2.3