From 649a4ef8820a7cf27e6aeb6cd3e48d29322b43e9 Mon Sep 17 00:00:00 2001 From: Joseph Manley Date: Sun, 27 Dec 2020 02:26:20 -0500 Subject: [PATCH] Update character datatype --- datatypes/character.go | 5 ++++- datatypes/user.go | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/datatypes/character.go b/datatypes/character.go index d8d6481..e6ab11d 100644 --- a/datatypes/character.go +++ b/datatypes/character.go @@ -2,6 +2,9 @@ package datatypes // Character represents something that can be skinned type Character struct { - Name string `json:"name"` + UID string `json:"uid"` Skin Skin `json:"skin"` } + +// Characters are an array of Character +type Characters []Character diff --git a/datatypes/user.go b/datatypes/user.go index 51eb889..fc0bcea 100644 --- a/datatypes/user.go +++ b/datatypes/user.go @@ -2,6 +2,7 @@ package datatypes // User is an object representing a user type User struct { - UID string `json:"uid"` - OwnedSkins Skins `json:"skins"` + UID string `json:"uid"` + OwnedSkins Skins `json:"skins"` + Characters Characters `json:"characters"` }