aboutsummaryrefslogtreecommitdiff
path: root/comments.go
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-06-05 14:32:40 +0300
committerlost+skunk <[email protected]>2024-06-05 14:32:40 +0300
commit9b850886656bb2ecf192e6d9df63ea07d175de06 (patch)
tree342e0ab5a0bab961f3496be3ac14fe9909a3b977 /comments.go
parent66ab740d7fec430d97f69ab0ed52ba0f01973d46 (diff)
downloaddevianter-9b850886656bb2ecf192e6d9df63ea07d175de06.tar.gz
devianter-9b850886656bb2ecf192e6d9df63ea07d175de06.tar.bz2
devianter-9b850886656bb2ecf192e6d9df63ea07d175de06.zip
User implementation and particaly groups
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"`
}
}
}