From 524b2b7881fdafd437d2cd304bef849f9910bc5c Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Sat, 27 Nov 2021 17:25:29 +0800 Subject: [PATCH] update protobuf --- client/pb/channel/servtype.pb.go | 70 ++++++++++++++++++++++++++++++++ client/pb/channel/servtype.proto | 14 +++++++ 2 files changed, 84 insertions(+) diff --git a/client/pb/channel/servtype.pb.go b/client/pb/channel/servtype.pb.go index 82811be5..52d3b1ff 100644 --- a/client/pb/channel/servtype.pb.go +++ b/client/pb/channel/servtype.pb.go @@ -619,7 +619,9 @@ type EventBody struct { Events []*MsgEvent `protobuf:"bytes,39,rep"` Scheduler *SchedulerMsg `protobuf:"bytes,40,opt"` AppChannel *AppChannelMsg `protobuf:"bytes,41,opt"` + FeedEvent *FeedEvent `protobuf:"bytes,44,opt"` WeakMsgAppChannel *AppChannelMsg `protobuf:"bytes,46,opt"` + ReadFeedNotify *ReadFeedNotify `protobuf:"bytes,48,opt"` } func (x *EventBody) GetReadNotify() *ReadNotify { @@ -790,6 +792,13 @@ func (x *EventBody) GetAppChannel() *AppChannelMsg { return nil } +func (x *EventBody) GetFeedEvent() *FeedEvent { + if x != nil { + return x.FeedEvent + } + return nil +} + func (x *EventBody) GetWeakMsgAppChannel() *AppChannelMsg { if x != nil { return x.WeakMsgAppChannel @@ -797,6 +806,67 @@ func (x *EventBody) GetWeakMsgAppChannel() *AppChannelMsg { return nil } +func (x *EventBody) GetReadFeedNotify() *ReadFeedNotify { + if x != nil { + return x.ReadFeedNotify + } + return nil +} + +type FeedEvent struct { + GuildId *uint64 `protobuf:"varint,1,opt"` + ChannelId *uint64 `protobuf:"varint,2,opt"` + FeedId *string `protobuf:"bytes,3,opt"` + MsgSummary *string `protobuf:"bytes,4,opt"` + EventTime *uint64 `protobuf:"varint,5,opt"` +} + +func (x *FeedEvent) GetGuildId() uint64 { + if x != nil && x.GuildId != nil { + return *x.GuildId + } + return 0 +} + +func (x *FeedEvent) GetChannelId() uint64 { + if x != nil && x.ChannelId != nil { + return *x.ChannelId + } + return 0 +} + +func (x *FeedEvent) GetFeedId() string { + if x != nil && x.FeedId != nil { + return *x.FeedId + } + return "" +} + +func (x *FeedEvent) GetMsgSummary() string { + if x != nil && x.MsgSummary != nil { + return *x.MsgSummary + } + return "" +} + +func (x *FeedEvent) GetEventTime() uint64 { + if x != nil && x.EventTime != nil { + return *x.EventTime + } + return 0 +} + +type ReadFeedNotify struct { + ReportTime *uint64 `protobuf:"varint,2,opt"` +} + +func (x *ReadFeedNotify) GetReportTime() uint64 { + if x != nil && x.ReportTime != nil { + return *x.ReportTime + } + return 0 +} + type GroupProStatus struct { IsEnable *uint32 `protobuf:"varint,1,opt"` IsBanned *uint32 `protobuf:"varint,2,opt"` diff --git a/client/pb/channel/servtype.proto b/client/pb/channel/servtype.proto index cc1604c5..409ac85e 100644 --- a/client/pb/channel/servtype.proto +++ b/client/pb/channel/servtype.proto @@ -142,7 +142,21 @@ message EventBody { repeated MsgEvent events = 39; optional SchedulerMsg scheduler = 40; optional AppChannelMsg appChannel = 41; + optional FeedEvent feedEvent = 44; optional AppChannelMsg weakMsgAppChannel = 46; + optional ReadFeedNotify readFeedNotify = 48; +} + +message FeedEvent { + optional uint64 guildId = 1; + optional uint64 channelId = 2; + optional string feedId = 3; + optional string msgSummary = 4; + optional uint64 eventTime = 5; +} + +message ReadFeedNotify { + optional uint64 reportTime = 2; } message GroupProStatus {