From 8523205a79870765ca5b4acf162358a8112a6bc5 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 23 Aug 2023 03:52:32 +0200 Subject: [PATCH] Add ParentId and CreatedAt to type Comment --- types.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/types.go b/types.go index 1cddd93..1644894 100644 --- a/types.go +++ b/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 {