graphql: Add channel stats under channel (#19804)
* graphql: Add channel stats under channel * add permission check
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a9e21fcaf1
Коммит
3e8b81c0c7
@@ -9,3 +9,15 @@ type ChannelStats struct {
|
||||
GuestCount int64 `json:"guest_count"`
|
||||
PinnedPostCount int64 `json:"pinnedpost_count"`
|
||||
}
|
||||
|
||||
func (o *ChannelStats) MemberCount_() float64 {
|
||||
return float64(o.MemberCount)
|
||||
}
|
||||
|
||||
func (o *ChannelStats) GuestCount_() float64 {
|
||||
return float64(o.GuestCount)
|
||||
}
|
||||
|
||||
func (o *ChannelStats) PinnedPostCount_() float64 {
|
||||
return float64(o.PinnedPostCount)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user