Skip to content

Commit

Permalink
fix: BanInfo is reference type
Browse files Browse the repository at this point in the history
fixed #199
  • Loading branch information
SevereCloud committed Jun 13, 2022
1 parent 21e68d9 commit 842f06e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions object/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ type GroupsGroup struct {
MainSection int `json:"main_section,omitempty"`
OnlineStatus GroupsOnlineStatus `json:"online_status,omitempty"` // Status of replies in community messages
AgeLimits int `json:"age_limits,omitempty"` // Information whether age limit
BanInfo GroupsGroupBanInfo `json:"ban_info,omitempty"` // User ban info
BanInfo *GroupsGroupBanInfo `json:"ban_info,omitempty"` // User ban info
Addresses GroupsAddressesInfo `json:"addresses,omitempty"` // Info about addresses in Groups
LiveCovers GroupsLiveCovers `json:"live_covers,omitempty"`
CropPhoto UsersCropPhoto `json:"crop_photo,omitempty"`
Expand Down Expand Up @@ -963,10 +963,10 @@ type GroupsOnlineStatus struct {

// GroupsOwnerXtrBanInfo struct.
type GroupsOwnerXtrBanInfo struct {
BanInfo GroupsBanInfo `json:"ban_info"`
Group GroupsGroup `json:"group"`
Profile UsersUser `json:"profile"`
Type string `json:"type"`
BanInfo *GroupsBanInfo `json:"ban_info"`
Group GroupsGroup `json:"group"`
Profile UsersUser `json:"profile"`
Type string `json:"type"`
}

// GroupsSubjectItem struct.
Expand Down

0 comments on commit 842f06e

Please sign in to comment.