[MM-45168] Added graphql fields for channel and channel_member (#20613)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
00439aa2a7
Коммит
662248291e
@@ -66,6 +66,7 @@ func TestGraphQLChannelMembers(t *testing.T) {
|
|||||||
MsgCount float64 `json:"msgCount"`
|
MsgCount float64 `json:"msgCount"`
|
||||||
MentionCount float64 `json:"mentionCount"`
|
MentionCount float64 `json:"mentionCount"`
|
||||||
MentionCountRoot float64 `json:"mentionCountRoot"`
|
MentionCountRoot float64 `json:"mentionCountRoot"`
|
||||||
|
MsgCountRoot float64 `json:"msgCountRoot"`
|
||||||
NotifyProps model.StringMap `json:"notifyProps"`
|
NotifyProps model.StringMap `json:"notifyProps"`
|
||||||
SchemeGuest bool `json:"schemeGuest"`
|
SchemeGuest bool `json:"schemeGuest"`
|
||||||
SchemeUser bool `json:"schemeUser"`
|
SchemeUser bool `json:"schemeUser"`
|
||||||
@@ -100,6 +101,7 @@ func TestGraphQLChannelMembers(t *testing.T) {
|
|||||||
msgCount
|
msgCount
|
||||||
mentionCount
|
mentionCount
|
||||||
mentionCountRoot
|
mentionCountRoot
|
||||||
|
msgCountRoot
|
||||||
schemeGuest
|
schemeGuest
|
||||||
schemeUser
|
schemeUser
|
||||||
schemeAdmin
|
schemeAdmin
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ func TestGraphQLChannels(t *testing.T) {
|
|||||||
Header string `json:"header"`
|
Header string `json:"header"`
|
||||||
Purpose string `json:"purpose"`
|
Purpose string `json:"purpose"`
|
||||||
SchemeId string `json:"schemeId"`
|
SchemeId string `json:"schemeId"`
|
||||||
|
TotalMsgCountRoot float64 `json:"totalMsgCountRoot"`
|
||||||
|
LastRootPostAt float64 `json:"lastRootPostAt"`
|
||||||
Cursor string `json:"cursor"`
|
Cursor string `json:"cursor"`
|
||||||
Team struct {
|
Team struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
@@ -70,6 +72,8 @@ func TestGraphQLChannels(t *testing.T) {
|
|||||||
header
|
header
|
||||||
purpose
|
purpose
|
||||||
schemeId
|
schemeId
|
||||||
|
totalMsgCountRoot
|
||||||
|
lastRootPostAt
|
||||||
cursor
|
cursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ type Channel {
|
|||||||
shared: Boolean
|
shared: Boolean
|
||||||
lastPostAt: Float!
|
lastPostAt: Float!
|
||||||
totalMsgCount: Float!
|
totalMsgCount: Float!
|
||||||
|
totalMsgCountRoot: Float!
|
||||||
|
lastRootPostAt: Float!
|
||||||
stats: ChannelStats
|
stats: ChannelStats
|
||||||
cursor: String
|
cursor: String
|
||||||
}
|
}
|
||||||
@@ -70,6 +72,7 @@ type ChannelMember {
|
|||||||
msgCount : Float!
|
msgCount : Float!
|
||||||
mentionCount : Float!
|
mentionCount : Float!
|
||||||
mentionCountRoot : Float!
|
mentionCountRoot : Float!
|
||||||
|
msgCountRoot : Float!
|
||||||
notifyProps : StringMap!
|
notifyProps : StringMap!
|
||||||
lastUpdateAt : Float!
|
lastUpdateAt : Float!
|
||||||
schemeGuest : Boolean!
|
schemeGuest : Boolean!
|
||||||
|
|||||||
@@ -188,6 +188,14 @@ func (o *Channel) TotalMsgCount_() float64 {
|
|||||||
return float64(o.TotalMsgCount)
|
return float64(o.TotalMsgCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *Channel) TotalMsgCountRoot_() float64 {
|
||||||
|
return float64(o.TotalMsgCountRoot)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (o *Channel) LastRootPostAt_() float64 {
|
||||||
|
return float64(o.LastRootPostAt)
|
||||||
|
}
|
||||||
|
|
||||||
func (o *Channel) DeepCopy() *Channel {
|
func (o *Channel) DeepCopy() *Channel {
|
||||||
copy := *o
|
copy := *o
|
||||||
if copy.SchemeId != nil {
|
if copy.SchemeId != nil {
|
||||||
|
|||||||
@@ -81,6 +81,10 @@ func (o *ChannelMember) MentionCountRoot_() float64 {
|
|||||||
return float64(o.MentionCountRoot)
|
return float64(o.MentionCountRoot)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *ChannelMember) MsgCountRoot_() float64 {
|
||||||
|
return float64(o.MsgCountRoot)
|
||||||
|
}
|
||||||
|
|
||||||
func (o *ChannelMember) LastUpdateAt_() float64 {
|
func (o *ChannelMember) LastUpdateAt_() float64 {
|
||||||
return float64(o.LastUpdateAt)
|
return float64(o.LastUpdateAt)
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user