Add missing json tags to go types

This commit is contained in:
2024-10-28 19:48:28 +01:00
parent 0662ed0c56
commit 6b38c706b4

View File

@@ -8,21 +8,21 @@ type (
Name string `json:"name"` Name string `json:"name"`
} }
Player struct { Player struct {
ID int64 ID int64 `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Guild Guild `json:"guild,omitempty"` Guild Guild `json:"guild,omitempty"`
} }
Association struct { Association struct {
ID int64 ID int64 `json:"id"`
LHS Player LHS Player `json:"lhs"`
RHS Player RHS Player `json:"rhs"`
Note string Note string `json:"note"`
} }
Note struct { Note struct {
ID int64 ID int64 `json:"id"`
Content string Content string `json:"content"`
Timestamp time.Time Timestamp time.Time `json:"timestamp"`
Player Player Player Player `json:"player"`
} }
) )
@@ -39,7 +39,7 @@ type NoteAssociationData struct {
} }
type Response struct { type Response struct {
Success bool Success bool `json:"success"`
Message string Message string `json:"message"`
Data interface{} Data interface{} `json:"data"`
} }