Add missing json tags to go types
This commit is contained in:
@@ -8,21 +8,21 @@ type (
|
||||
Name string `json:"name"`
|
||||
}
|
||||
Player struct {
|
||||
ID int64
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Guild Guild `json:"guild,omitempty"`
|
||||
}
|
||||
Association struct {
|
||||
ID int64
|
||||
LHS Player
|
||||
RHS Player
|
||||
Note string
|
||||
ID int64 `json:"id"`
|
||||
LHS Player `json:"lhs"`
|
||||
RHS Player `json:"rhs"`
|
||||
Note string `json:"note"`
|
||||
}
|
||||
Note struct {
|
||||
ID int64
|
||||
Content string
|
||||
Timestamp time.Time
|
||||
Player Player
|
||||
ID int64 `json:"id"`
|
||||
Content string `json:"content"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
Player Player `json:"player"`
|
||||
}
|
||||
)
|
||||
|
||||
@@ -39,7 +39,7 @@ type NoteAssociationData struct {
|
||||
}
|
||||
|
||||
type Response struct {
|
||||
Success bool
|
||||
Message string
|
||||
Data interface{}
|
||||
Success bool `json:"success"`
|
||||
Message string `json:"message"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user