graphql: Add channel stats under channel (#19804)

* graphql: Add channel stats under channel

* add permission check
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-03-25 11:59:57 +03:00
коммит произвёл GitHub
родитель a9e21fcaf1
Коммит 3e8b81c0c7
4 изменённых файлов: 90 добавлений и 1 удалений

Просмотреть файл

@@ -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)
}