-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplus_event.proto
146 lines (112 loc) · 6.18 KB
/
plus_event.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
syntax = "proto3";
package event;
import "model_event_message.proto";
import "model_event_meta.proto";
import "model_event_notice.proto";
import "model_event_request.proto";
import "google/protobuf/empty.proto";
option go_package="github.com/dezhishen/onebot-plus/pkg/plugin/event;event";
message EventMessagePrivateGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventMessagePrivateGRPC message = 2;
}
message EventMessageGroupGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventMessageGroupGRPC message = 2;
}
message EventNoticeGroupUploadGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupUploadGRPC message = 2;
}
message EventNoticeGroupAdminGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupAdminGRPC message = 2;
}
message EventNoticeGroupDecreaseGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupDecreaseGRPC message = 2;
}
message EventNoticeGroupIncreaseGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupIncreaseGRPC message = 2;
}
message EventNoticeGroupBanGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupBanGRPC message = 2;
}
message EventNoticeFriendAddGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeFriendAddGRPC message = 2;
}
message EventNoticeGroupRecallGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupRecallGRPC message = 2;
}
message EventNoticeFriendRecallGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeFriendRecallGRPC message = 2;
}
message EventNoticeGroupNotifyPokeGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupNotifyPokeGRPC message = 2;
}
message EventNoticeGroupNotifyHonorGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupNotifyHonorGRPC message = 2;
}
message EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventNoticeGroupNotifyLuckyKingGRPC message = 2;
}
message EventRequestFriendGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventRequestFriendGRPC message = 2;
}
message EventRequestGroupGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventRequestGroupGRPC message = 2;
}
message EventMetaLifecycleGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventMetaLifecycleGRPC message = 2;
}
message EventMetaHeartbeatGRPCWithOnebotApi {
uint32 onebotApi = 1;
model.EventMetaHeartbeatGRPC message = 2;
}
service OnebotEventCallbackGRPC {
// HandleMessagePrivate(data *model.EventMessagePrivate, onebotApi api.OnebotApiClientInterface) error
rpc HandleMessagePrivate(EventMessagePrivateGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleMessageGroup(data *model.EventMessageGroup, onebotApi api.OnebotApiClientInterface) error
rpc HandleMessageGroup(EventMessageGroupGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupUpload(data *model.EventNoticeGroupUpload, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupUpload(EventNoticeGroupUploadGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupAdmin(data *model.EventNoticeGroupAdmin, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupAdmin(EventNoticeGroupAdminGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupDecrease(data *model.EventNoticeGroupDecrease, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupDecrease(EventNoticeGroupDecreaseGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupIncrease(data *model.EventNoticeGroupIncrease, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupIncrease(EventNoticeGroupIncreaseGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupBan(data *model.EventNoticeGroupBan, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupBan(EventNoticeGroupBanGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeFriendAdd(data *model.EventNoticeFriendAdd, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeFriendAdd(EventNoticeFriendAddGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupRecall(data *model.EventNoticeGroupRecall, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupRecall(EventNoticeGroupRecallGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeFriendRecall(data *model.EventNoticeFriendRecall, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeFriendRecall(EventNoticeFriendRecallGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupNotifyPoke(data *model.EventNoticeGroupNotifyPoke, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupNotifyPoke(EventNoticeGroupNotifyPokeGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupNotifyHonor(data *model.EventNoticeGroupNotifyHonor, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupNotifyHonor(EventNoticeGroupNotifyHonorGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleNoticeGroupNotifyLuckyKing(data *model.EventNoticeGroupNotifyLuckyKing, onebotApi api.OnebotApiClientInterface) error
rpc HandleNoticeGroupNotifyLuckyKing(EventNoticeGroupNotifyLuckyKingGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleRequestFriend(data *model.EventRequestFriend, onebotApi api.OnebotApiClientInterface) error
rpc HandleRequestFriend(EventRequestFriendGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleRequestGroup(data *model.EventRequestGroup, onebotApi api.OnebotApiClientInterface) error
rpc HandleRequestGroup(EventRequestGroupGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleMetaLifecycle(data *model.EventMetaLifecycle, onebotApi api.OnebotApiClientInterface) error
rpc HandleMetaLifecycle(EventMetaLifecycleGRPCWithOnebotApi) returns (google.protobuf.Empty);
// HandleMetaHeartBeat(data *model.EventMetaHeartbeat, onebotApi api.OnebotApiClientInterface) error
rpc HandleMetaHeartBeat(EventMetaHeartbeatGRPCWithOnebotApi) returns (google.protobuf.Empty);
}