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 {
|
||||
Id int `json:"id,string"`
|
||||
Text string `json:"text"`
|
||||
User User `json:"user"`
|
||||
Comments []Comment `json:"comments"`
|
||||
Id int `json:"id,string"`
|
||||
ParentId int `json:"parentId,string"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
Text string `json:"text"`
|
||||
User User `json:"user"`
|
||||
Comments []Comment `json:"comments"`
|
||||
}
|
||||
|
||||
type CreateCommentsResponse struct {
|
||||
|
|
Loading…
Reference in New Issue