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

@ -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"`