feat: GroupsGroup add Like
@@ -217,6 +217,7 @@ type GroupsGroup struct {
PublicDateLabel string `json:"public_date_label,omitempty"`
AuthorID int `json:"author_id,omitempty"`
Phone string `json:"phone,omitempty"`
+ Like GroupsGroupLike `json:"like"`
}
// ToMention return mention.
@@ -224,6 +225,18 @@ func (group GroupsGroup) ToMention() string {
return fmt.Sprintf("[club%d|%s]", group.ID, group.Name)
}
+// GroupsGroupLike struct.
+type GroupsGroupLike struct {
+ IsLiked BaseBoolInt `json:"is_liked"`
+ Friends GroupsGroupLikeFriends `json:"friends"`
+}
+
+// GroupsGroupLikeFriends struct.
+type GroupsGroupLikeFriends struct {
+ Count int `json:"count"`
+ Preview []int `json:"preview"`
+}
+
// GroupsLiveCovers struct.
type GroupsLiveCovers struct {
IsEnabled BaseBoolInt `json:"is_enabled"`
