Add ParentId and CreatedAt to type Comment

This commit is contained in:
ekzyis 2023-08-23 03:52:32 +02:00
parent e6c93d21d5
commit 8523205a79
1 changed files with 6 additions and 4 deletions

View File

@ -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 {