Add ParentId and CreatedAt to type Comment
This commit is contained in:
parent
e6c93d21d5
commit
8523205a79
2
types.go
2
types.go
|
@ -21,6 +21,8 @@ type User struct {
|
||||||
|
|
||||||
type Comment struct {
|
type Comment struct {
|
||||||
Id int `json:"id,string"`
|
Id int `json:"id,string"`
|
||||||
|
ParentId int `json:"parentId,string"`
|
||||||
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
Text string `json:"text"`
|
Text string `json:"text"`
|
||||||
User User `json:"user"`
|
User User `json:"user"`
|
||||||
Comments []Comment `json:"comments"`
|
Comments []Comment `json:"comments"`
|
||||||
|
|
Loading…
Reference in New Issue