diff options
author | Michael Hunteman <michael@huntm.net> | 2024-08-31 16:09:58 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-08-31 16:09:58 -0700 |
commit | 9e6c97e532ef9970fc975123abaca86c4ce9b6b1 (patch) | |
tree | 340f5f00ecbed20be9a18964b17487dbd427b85a /server/admin | |
parent | df22d74076e3af98c2ddf1b5f7b44c71f1972640 (diff) |
Update type names
Diffstat (limited to 'server/admin')
-rw-r--r-- | server/admin/handler.go | 4 | ||||
-rw-r--r-- | server/admin/models.go | 2 |
2 files changed, 3 insertions, 3 deletions
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"` } |