mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
update protobuf
This commit is contained in:
parent
5c5e61d279
commit
524b2b7881
@ -619,7 +619,9 @@ type EventBody struct {
|
|||||||
Events []*MsgEvent `protobuf:"bytes,39,rep"`
|
Events []*MsgEvent `protobuf:"bytes,39,rep"`
|
||||||
Scheduler *SchedulerMsg `protobuf:"bytes,40,opt"`
|
Scheduler *SchedulerMsg `protobuf:"bytes,40,opt"`
|
||||||
AppChannel *AppChannelMsg `protobuf:"bytes,41,opt"`
|
AppChannel *AppChannelMsg `protobuf:"bytes,41,opt"`
|
||||||
|
FeedEvent *FeedEvent `protobuf:"bytes,44,opt"`
|
||||||
WeakMsgAppChannel *AppChannelMsg `protobuf:"bytes,46,opt"`
|
WeakMsgAppChannel *AppChannelMsg `protobuf:"bytes,46,opt"`
|
||||||
|
ReadFeedNotify *ReadFeedNotify `protobuf:"bytes,48,opt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *EventBody) GetReadNotify() *ReadNotify {
|
func (x *EventBody) GetReadNotify() *ReadNotify {
|
||||||
@ -790,6 +792,13 @@ func (x *EventBody) GetAppChannel() *AppChannelMsg {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *EventBody) GetFeedEvent() *FeedEvent {
|
||||||
|
if x != nil {
|
||||||
|
return x.FeedEvent
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func (x *EventBody) GetWeakMsgAppChannel() *AppChannelMsg {
|
func (x *EventBody) GetWeakMsgAppChannel() *AppChannelMsg {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.WeakMsgAppChannel
|
return x.WeakMsgAppChannel
|
||||||
@ -797,6 +806,67 @@ func (x *EventBody) GetWeakMsgAppChannel() *AppChannelMsg {
|
|||||||
return nil
|
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 {
|
type GroupProStatus struct {
|
||||||
IsEnable *uint32 `protobuf:"varint,1,opt"`
|
IsEnable *uint32 `protobuf:"varint,1,opt"`
|
||||||
IsBanned *uint32 `protobuf:"varint,2,opt"`
|
IsBanned *uint32 `protobuf:"varint,2,opt"`
|
||||||
|
@ -142,7 +142,21 @@ message EventBody {
|
|||||||
repeated MsgEvent events = 39;
|
repeated MsgEvent events = 39;
|
||||||
optional SchedulerMsg scheduler = 40;
|
optional SchedulerMsg scheduler = 40;
|
||||||
optional AppChannelMsg appChannel = 41;
|
optional AppChannelMsg appChannel = 41;
|
||||||
|
optional FeedEvent feedEvent = 44;
|
||||||
optional AppChannelMsg weakMsgAppChannel = 46;
|
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 {
|
message GroupProStatus {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user