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