aboutsummaryrefslogtreecommitdiff
path: root/comments.go
diff options
context:
space:
mode:
Diffstat (limited to 'comments.go')
-rw-r--r--comments.go21
1 files changed, 9 insertions, 12 deletions
diff --git a/comments.go b/comments.go
index f6a86c6..7b3bb3d 100644
--- a/comments.go
+++ b/comments.go
@@ -13,24 +13,21 @@ type comments struct {
Total int
Thread []struct {
- CommentId, ParentId, Replies, Likes int
- Posted time
- IsAuthorHighlited bool
+ Replies, Likes int
+ ID int `json:"commentId"`
+ Parent int `json:"ParrentId"`
- Desctiption string
+ Posted time
+ Author bool `json:"isAuthorHighlited"`
- // упрощение структуры с комментами
- Comment string
+ Desctiption string
+ Comment string
- TextContent struct {
- Html struct {
- Markup string
- }
- }
+ TextContent text
User struct {
Username string
- IsBanned bool
+ Banned bool `json:"isBanned"`
}
}
}