1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 11:07:40 +08:00

update protobuf

This commit is contained in:
Mrs4s 2021-11-27 17:25:29 +08:00
parent 5c5e61d279
commit 524b2b7881
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 84 additions and 0 deletions

View File

@ -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"`

View File

@ -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 {