Add missing json tags to go types
This commit is contained in:
@@ -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"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user