返回提交历史
Modified
grpc_api/bilibili/app/view/v1.proto
+31
-28
Added
grpc_api/bilibili/im/interfaces/v1.proto
+440
-0
Added
grpc_api/bilibili/im/type.proto
+244
-0
Modified
grpc_api/bilibili/main/community/reply/v1.proto
+45
-44
Modified
user/info.md
+1
-1
XFEstudio/bilibili-API-collect
更新【私信】相关proto定义
c7de91c
代码差异
5 个文件
+761
-73
@@ -35,7 +35,7 @@ service View {
35
35
//https://app.bilibili.com/bilibili.app.view.v1.View/View
36
36
rpc view (ViewReq) returns (ViewReply);
37
37
38
//视频播放时数据
38
//稿件特殊数据
39
39
//https://app.bilibili.com/bilibili.app.view.v1.View/ViewProgress
40
40
rpc viewProgress (ViewProgressReq) returns (ViewProgressReply);
41
41
}
@@ -257,25 +257,26 @@ message ViewReply {
257
257
//ugc视频合集信息
258
258
UgcSeason ugcSeason = 24;
259
259
260
//
260
//配置?
261
261
Config config = 25;
262
262
263
//
263
//分享副标题(已观看xxx次)
264
264
string shareSubtitle = 26;
265
265
266
266
//
267
267
Interaction interaction = 27;
268
268
269
//
269
//错误码
270
//0:正常 1:视频被UP主删除
270
271
int32 ecode = 28;
271
272
272
//
273
//404页信息
273
274
CustomConfig customConfig = 29;
274
275
275
276
//广告
276
277
repeated CM cms = 30;
277
278
278
//
279
//广告配置?
279
280
CMConfig cmConfig = 31;
280
281
281
282
//
@@ -284,7 +285,7 @@ message ViewReply {
284
285
//
285
286
Rank rank = 33;
286
287
287
//
288
//免流相关信息?
288
289
TFPanelCustomized tfPanelCustomized = 34;
289
290
290
291
//
@@ -297,7 +298,7 @@ message ViewReply {
297
298
ActivitySeason activitySeason = 37;
298
299
}
299
300
300
//视频播放时数据-请求
301
//稿件特殊数据-请求
301
302
message ViewProgressReq{
302
303
//稿件avid
303
304
int64 aid = 1;
@@ -309,9 +310,9 @@ message ViewProgressReq{
309
310
int64 upMid = 3;
310
311
}
311
312
312
//视频播放时数据-回复
313
//稿件特殊数据-回复
313
314
message ViewProgressReply{
314
//特殊数据
315
//稿件特殊数据
315
316
VideoGuide videoGuide = 1;
316
317
317
318
//资源包
@@ -607,9 +608,9 @@ message CommandDm{
607
608
string idStr = 10;
608
609
}
609
610
610
//
611
//配置?
611
612
message Config {
612
//
613
//下方推荐项标题
613
614
string relatesTitle = 1;
614
615
615
616
//
@@ -640,21 +641,22 @@ message ContractCard {
640
641
int64 displayDuration = 3;
641
642
}
642
643
643
//
644
//404页信息
644
645
message CustomConfig {
645
//
646
//重定向页面url
646
647
string redirectUrl = 1;
647
648
}
648
649
649
//
650
//分P弹幕信息
650
651
message DM{
651
//
652
//分P是否关闭弹幕
653
//0:正常 1:关闭
652
654
bool closed = 1;
653
655
654
656
//
655
657
bool realName = 2;
656
658
657
//
659
//分P弹幕总数
658
660
int64 count = 3;
659
661
}
660
662
@@ -916,21 +918,21 @@ message OperationCard{
916
918
string content = 7;
917
919
}
918
920
919
//
921
//内嵌操作按钮卡片
920
922
message OperationCardNew{
921
//
923
//卡片id
922
924
int64 id = 1;
923
925
924
//
926
//显示时间
925
927
int32 from = 2;
926
928
927
//
929
//消失时间
928
930
int32 to = 3;
929
931
930
932
//
931
933
bool status = 4;
932
934
933
//
935
//卡片类型
934
936
OperationCardType cardType = 5;
935
937
936
938
oneof renderCase {
@@ -1117,7 +1119,7 @@ message Relate {
1117
1119
//special:pgc视频 av:稿件视频 cm:广告 game:游戏
1118
1120
string goto = 7;
1119
1121
1120
//
1122
//参数(如av号等)
1121
1123
string param = 8;
1122
1124
1123
1125
//跳转uri
@@ -1132,7 +1134,8 @@ message Relate {
1132
1134
//
1133
1135
string reserve = 12;
1134
1136
1135
//
1137
//来源标识
1138
//operation:管理员添加
1136
1139
string from = 13;
1137
1140
1138
1141
//备注
@@ -1165,7 +1168,7 @@ message Relate {
1165
1168
//按钮信息
1166
1169
Button button = 23;
1167
1170
1168
//
1171
//spm追踪id
1169
1172
string trackid = 24;
1170
1173
1171
1174
//
@@ -1455,7 +1458,7 @@ message Tag {
1455
1458
string uri = 7;
1456
1459
1457
1460
//TAG类型
1458
//common:普通 new:话题
1461
//common:普通 new:话题 act:活动
1459
1462
string tagType = 8;
1460
1463
}
1461
1464
@@ -1582,7 +1585,7 @@ message VideoGuide{
1582
1585
//
1583
1586
repeated OperationCard operationCard = 3;
1584
1587
1585
//
1588
//内嵌操作按钮卡片
1586
1589
repeated OperationCardNew operationCardNew = 4;
1587
1590
1588
1591
//
@@ -1597,7 +1600,7 @@ message ViewPage{
1597
1600
//分P对应的音频稿件
1598
1601
Audio audio = 2;
1599
1602
1600
//
1603
//分P弹幕信息
1601
1604
DM dm =3;
1602
1605
1603
1606
//下载文案
@@ -0,0 +1,440 @@
1
syntax = "proto3";
2
3
import "bilibili/im/type.proto";
4
5
package bilibili.im.interfaces.v1;
6
7
//私信
8
service ImInterface {
9
//未读私信数
10
rpc singleUnread (ReqSingleUnread) returns (RspSingleUnread);
11
12
//会话详情
13
rpc sessionDetail (ReqSessionDetail) returns (bilibili.im.type.SessionInfo);
14
15
//拉取会话记录列表
16
rpc getSessions (ReqGetSessions) returns (RspSessions);
17
18
//拉取最近私信分享列表
19
rpc shareList (ReqShareList) returns (RspShareList);
20
21
//发送消息
22
rpc sendMsg (ReqSendMsg) returns (RspSendMsg);
23
24
//删除会话记录
25
rpc removeSession (ReqRemoveSession) returns (DummyRsp);
26
27
//置顶聊天
28
rpc setTop (ReqSetTop) returns (DummyRsp);
29
30
//
31
rpc ackAssisMsg (ReqAckAssisMsg) returns (DummyRsp);
32
33
//
34
rpc ackSessions (ReqAckSessions) returns (RspSessions);
35
36
//
37
rpc batchRmSessions (ReqBatRmSess) returns (DummyRsp);
38
39
//
40
rpc batchSessDetail (ReqSessionDetails) returns (RspSessionDetails);
41
42
//
43
rpc getSpecificSessions (ReqGetSpecificSessions) returns (RspSessions);
44
45
//
46
rpc groupAssisMsg (ReqGroupAssisMsg) returns (RspSessionMsg);
47
48
//
49
rpc myGroupUnread (DummyReq) returns (RspMyGroupUnread);
50
51
//
52
rpc newSessions (ReqNewSessions) returns (RspSessions);
53
54
//
55
rpc specificSingleUnread (ReqSpecificSingleUnread) returns (RspSpecificSingleUnread);
56
57
//
58
rpc syncAck (ReqSyncAck) returns (RspSyncAck);
59
60
//
61
rpc syncFetchSessionMsgs (ReqSessionMsg) returns (RspSessionMsg);
62
63
//
64
rpc syncRelation (ReqRelationSync) returns (RspRelationSync);
65
66
//
67
rpc updateAck (ReqUpdateAck) returns (DummyRsp);
68
69
//
70
rpc updateUnflwRead (DummyReq) returns (DummyRsp);
71
}
72
73
//发送消息-请求
74
message ReqSendMsg {
75
//
76
bilibili.im.type.Msg msg = 1;
77
78
//
79
string cookie = 2;
80
81
//
82
string cookie2 = 3;
83
84
//
85
int32 errorCode = 4;
86
87
//
88
string devId = 5;
89
}
90
91
//发送消息-回复
92
message RspSendMsg {
93
//
94
uint64 msgKey = 1;
95
96
//
97
repeated EmotionInfo eInfos = 2;
98
99
//
100
string msgContent = 3;
101
}
102
103
//-请求
104
message DummyReq {
105
//
106
uint32 idl = 1;
107
}
108
109
//-回复
110
message DummyRsp {
111
112
}
113
114
//-请求
115
message ReqAckAssisMsg {
116
//
117
uint64 ackSeqno = 1;
118
}
119
120
//-请求
121
message ReqAckSessions {
122
//
123
uint64 beginTs = 1;
124
125
//
126
uint32 endTs = 2;
127
128
//
129
uint32 size = 3;
130
}
131
132
//-请求
133
message ReqBatRmSess {
134
135
}
136
137
//拉取会话记录列表-请求
138
message ReqGetSessions {
139
//
140
uint64 beginTs = 1;
141
142
//
143
uint64 endTs = 2;
144
145
//
146
uint32 size = 3;
147
148
//
149
uint32 sessionType = 4;
150
151
//
152
uint32 unfollowFold = 5;
153
154
//
155
uint32 groupFold = 6;
156
157
//
158
uint32 sortRule = 7;
159
160
//
161
uint32 teenagerMode = 8;
162
163
//
164
uint32 lessonsMode = 9;
165
}
166
167
//拉取会话记录列表-回复
168
message RspSessions {
169
//
170
repeated bilibili.im.type.SessionInfo sessionList = 1;
171
172
//
173
uint32 hasMore = 2;
174
175
//
176
bool antiDisturbCleaning = 3;
177
178
//
179
int32 isAddressListEmpty = 4;
180
}
181
182
//-请求
183
message ReqGetSpecificSessions {
184
//
185
repeated SimpleSession talkerSessions = 1;
186
}
187
188
//-请求
189
message ReqGroupAssisMsg {
190
//
191
uint64 clientSeqno = 1;
192
193
//
194
uint32 size = 2;
195
}
196
197
//-请求
198
message ReqNewSessions {
199
//
200
uint64 beginTs = 1;
201
202
//
203
uint32 size = 2;
204
205
//
206
uint32 teenagerMode = 3;
207
208
//
209
uint32 lessonsMode = 4;
210
}
211
212
//-请求
213
message ReqRelationSync {
214
//
215
uint64 clientRelationOplogSeqno = 1;
216
}
217
218
//删除会话记录-请求
219
message ReqRemoveSession {
220
//
221
uint64 talkerId = 1;
222
223
//
224
uint32 sessionType = 2;
225
}
226
227
//会话详情-请求
228
message ReqSessionDetail {
229
//
230
uint64 talkerId = 1;
231
232
//
233
uint32 sessionType = 2;
234
235
//
236
uint64 uid = 3;
237
}
238
239
//-请求
240
message ReqSessionDetails {
241
//
242
repeated ReqSessionDetail sessIds = 1;
243
}
244
245
//-请求
246
message ReqSessionMsg {
247
//
248
uint64 talkerId = 1;
249
250
//
251
int32 sessionType = 2;
252
253
//
254
uint64 endSeqno = 3;
255
256
//
257
uint64 beginSeqno = 4;
258
259
//
260
int32 size = 5;
261
262
//
263
int32 order = 6;
264
265
//
266
string devId = 7;
267
}
268
269
//置顶聊天-请求
270
message ReqSetTop {
271
//
272
uint64 talkerId = 1;
273
274
//
275
uint32 sessionType = 2;
276
277
//
278
uint32 opType = 3;
279
}
280
281
//拉取最近私信分享列表-请求
282
message ReqShareList {
283
//
284
int32 size = 1;
285
}
286
287
//拉取最近私信分享列表-回复
288
message RspShareList {
289
//最近会话列表
290
repeated ShareSessionInfo sessionList = 1;
291
292
//
293
int32 isAddressListEmpty = 2;
294
}
295
296
//未读私信数-请求
297
message ReqSingleUnread {
298
//
299
uint32 unreadType = 1;
300
301
//
302
uint32 showUnfollowList = 2;
303
}
304
305
//未读私信数-回复
306
message RspSingleUnread {
307
//未关注用户私信数
308
uint64 unfollowUnread = 1;
309
310
//已关注用户私信数
311
uint64 followUnread = 2;
312
313
//
314
uint32 unfollowPushMsg = 3;
315
}
316
317
//-请求
318
message ReqSpecificSingleUnread {
319
//
320
repeated SimpleSession talkerSessions = 1;
321
}
322
323
//-请求
324
message ReqSyncAck {
325
//
326
uint64 clientSeqno = 1;
327
}
328
329
//-请求
330
message ReqUpdateAck {
331
//
332
uint64 talkerId = 1;
333
334
//
335
uint32 sessionType = 2;
336
337
//
338
uint64 ackSeqno = 3;
339
}
340
341
//-回复
342
message RspMyGroupUnread {
343
//
344
uint32 unreadCount = 1;
345
}
346
347
//-回复
348
message RspRelationSync {
349
//
350
int32 full = 1;
351
352
//
353
repeated bilibili.im.type.RelationLog relationLogs = 2;
354
355
//
356
repeated bilibili.im.type.FriendRelation friendList = 3;
357
358
//
359
uint64 serverRelationOplogSeqno = 4;
360
361
//
362
repeated bilibili.im.type.GroupRelation groupList = 5;
363
}
364
365
//-回复
366
message RspSessionDetails {
367
//
368
repeated bilibili.im.type.SessionInfo sessInfos = 1;
369
}
370
371
//-回复
372
message RspSessionMsg {
373
//
374
repeated bilibili.im.type.Msg messages = 1;
375
376
//
377
int32 hasMore = 2;
378
379
//
380
uint64 minSeqno = 3;
381
382
//
383
uint64 maxSeqno = 4;
384
385
//
386
repeated EmotionInfo eInfos = 5;
387
}
388
389
//-回复
390
message RspSpecificSingleUnread {
391
//
392
map <uint64,uint64> talkerUnreadCnt = 1;
393
394
//
395
uint64 allUnreadCnt = 2;
396
}
397
398
//-回复
399
message RspSyncAck {
400
401
}
402
403
//会话信息,用于私信分享
404
message ShareSessionInfo {
405
//
406
uint64 talkerId = 1;
407
408
//
409
string talkerUname = 2;
410
411
//
412
string talkerIcon = 3;
413
414
//
415
int32 officialType = 4;
416
}
417
418
//
419
message SimpleSession {
420
//
421
uint64 talkerId = 1;
422
423
//
424
uint32 sessionType = 2;
425
}
426
427
//
428
message EmotionInfo {
429
//
430
string text = 1;
431
432
//
433
string url = 2;
434
435
//
436
int32 size = 3;
437
438
//
439
string gifUrl = 4;
440
}
@@ -0,0 +1,244 @@
1
syntax = "proto3";
2
3
package bilibili.im.type;
4
5
//消息类型
6
enum MsgType {
7
//基础消息类型
8
EN_INVALID_MSG_TYPE = 0; //空空的~
9
EN_MSG_TYPE_TEXT = 1; //文本消息
10
EN_MSG_TYPE_PIC = 2; //图片消息
11
EN_MSG_TYPE_AUDIO = 3; //语音消息
12
EN_MSG_TYPE_SHARE = 4; //分享消息
13
EN_MSG_TYPE_DRAW_BACK = 5; //撤回消息
14
EN_MSG_TYPE_CUSTOM_FACE = 6; //自定义表情
15
EN_MSG_TYPE_SHARE_V2 = 7; //分享v2消息
16
EN_MSG_TYPE_SYS_CANCEL = 8; //系统撤销
17
EN_MSG_TYPE_MINI_PROGRAM = 9; //小程序
18
//扩展消息类型
19
EN_MSG_TYPE_NOTIFY_MSG = 10; //业务通知
20
EN_MSG_TYPE_VIDEO_CARD = 11; //视频卡片
21
EN_MSG_TYPE_ARTICLE_CARD = 12; //专栏卡片
22
EN_MSG_TYPE_PICTURE_CARD = 13; //图片卡
23
EN_MSG_TYPE_COMMON_SHARE_CARD = 14; //异形卡
24
EN_MSG_TYPE_BIZ_MSG_TYPE = 50; //
25
//功能类系统消息类型
26
EN_MSG_TYPE_GROUP_MEMBER_CHANGED = 101; //群成员变更
27
EN_MSG_TYPE_GROUP_STATUS_CHANGED = 102; //群状态变更
28
EN_MSG_TYPE_GROUP_DYNAMIC_CHANGED = 103; //群动态变更
29
EN_MSG_TYPE_GROUP_LIST_CHANGED = 104; //群列表变更
30
EM_MSG_TYPE_FRIEND_LIST_CHANGED = 105; //好友列表变更
31
EN_MSG_TYPE_GROUP_DETAIL_CHANGED = 106; //群详情发生变化
32
EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED = 107; //群成员角色发生变化
33
EN_MSG_TYPE_NOTICE_WATCH_LIST = 108; //
34
EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED = 109; //消息系统,收到新的reply
35
EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED = 110; //
36
EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED = 111; //
37
EN_MSG_TYPE_NOTIFY_NEW_UP_RECIEVED = 112; //
38
EN_MSG_TYPE_NOTIFY_NEW_REPLY_RECIEVED_V2 = 113; //
39
EN_MSG_TYPE_NOTIFY_NEW_AT_RECIEVED_V2 = 114; //
40
EN_MSG_TYPE_NOTIFY_NEW_PRAISE_RECIEVED_V2 = 115; //
41
EN_MSG_TYPE_GROUP_DETAIL_CHANGED_MULTI = 116; //群详情发生变化,多端同步版本需要即时消息,无需落地
42
EN_MSG_TYPE_GROUP_MEMBER_ROLE_CHANGED_MULTI = 117; //群成员角色发生变化,多端同步版本需要即时消息,无需落地
43
EN_MSG_TYPE_NOTIFY_ANTI_DISTURB = 118; //
44
//系统通知栏消息类型
45
EN_MSG_TYPE_SYS_GROUP_DISSOLVED = 201; //群解散
46
EN_MSG_TYPE_SYS_GROUP_JOINED = 202; //入群
47
EN_MSG_TYPE_SYS_GROUP_MEMBER_EXITED = 203; //成员主动退群
48
EN_MSG_TYPE_SYS_GROUP_ADMIN_FIRED = 204; //房管被撤
49
EN_MSG_TYPE_SYS_GROUP_MEMBER_KICKED = 205; //成员被T
50
EN_MSG_TYPE_SYS_GROUP_ADMIN_KICK_OFF = 206; //管理T人
51
EN_MSG_TYPE_SYS_GROUP_ADMIN_DUTY = 207; //管理上任
52
EN_MSG_TYPE_SYS_GROUP_AUTO_CREATED = 208; //自动创建
53
EN_MSG_TYPE_SYS_FRIEND_APPLY = 210; //好友申请
54
EN_MSG_TYPE_SYS_FRIEND_APPLY_ACK = 211; //好友申请通过
55
EN_MSG_TYPE_SYS_GROUP_APPLY_FOR_JOINING = 212; //用户加群申请
56
EN_MSG_TYPE_SYS_GROUP_ADMIN_ACCEPTED_USER_APPLY = 213; //通知管理员,有其他管理员已经同意用户加群
57
//聊天窗口通知消息类型
58
EN_MSG_TYPE_CHAT_MEMBER_JOINED = 301; //入群
59
EN_MSG_TYPE_CHAT_MEMBER_EXITED = 302; //退群
60
EN_MSG_TYPE_CHAT_GROUP_FREEZED = 303; //冻结
61
EN_MSG_TYPE_CHAT_GROUP_DISSOLVED = 304; //解散
62
EN_MSG_TYPE_CHAT_GROUP_CREATED = 305; //开通应援团
63
EN_MSG_TYPE_CHAT_POPUP_SESSION = 306; //弹出会话
64
}
65
66
//
67
message SessionInfo {
68
//
69
uint64 talkerId = 1;
70
71
//
72
uint32 sessionType = 2;
73
74
//
75
uint64 atSeqno = 3;
76
77
//
78
uint64 topTs = 4;
79
80
//
81
string groupName = 5;
82
83
//
84
string groupCover = 6;
85
86
//
87
uint32 isFollow = 7;
88
89
//
90
uint32 isDnd = 8;
91
92
//
93
uint64 ackSeqno = 9;
94
95
//
96
uint64 ackTs = 10;
97
98
//
99
uint64 sessionTs = 11;
100
101
//
102
uint32 unreadCount = 12;
103
104
//
105
Msg lastMsg = 13;
106
107
//
108
uint32 groupType = 14;
109
110
//
111
uint32 canFold = 15;
112
113
//
114
uint32 status = 16;
115
116
//
117
uint64 maxSeqno = 17;
118
119
//
120
uint32 newPushMsg = 18;
121
122
//
123
uint32 setting = 19;
124
125
//
126
uint32 isGuardian = 20;
127
}
128
129
//
130
message Msg {
131
//
132
uint64 senderUid = 1;
133
134
//
135
int32 receiverType = 2;
136
137
//
138
uint64 receiverId = 3;
139
140
//
141
uint64 cliMsgId = 4;
142
143
//
144
int32 msgType = 5;
145
146
//
147
string content = 6;
148
149
//
150
uint64 msgSeqno = 7;
151
152
//
153
uint64 timestamp = 8;
154
155
//
156
repeated uint64 atUids = 9;
157
158
//
159
repeated uint64 recverIds = 10;
160
161
//
162
uint64 msgKey = 11;
163
164
//
165
uint32 msgStatus = 12;
166
167
//
168
bool sysCancel = 13;
169
170
//
171
string notifyCode = 14;
172
173
//
174
uint32 msgSource = 15;
175
176
//
177
int32 newFaceVersion = 16;
178
}
179
180
//
181
message RelationLog {
182
//
183
int32 logType = 1;
184
185
//
186
uint64 oplogSeqno = 2;
187
188
//
189
FriendRelation friendRelation = 3;
190
191
//
192
GroupRelation groupRelation = 4;
193
}
194
195
//
196
message FriendRelation {
197
//
198
uint64 uid = 1;
199
200
//
201
string userName = 2;
202
203
//
204
string face = 3;
205
206
//
207
uint32 vipLevel = 4;
208
}
209
210
//
211
message GroupRelation {
212
//
213
uint64 groupId = 1;
214
215
//
216
uint64 ownerUid = 2;
217
218
//
219
uint32 groupType = 3;
220
221
//
222
uint32 groupLevel = 4;
223
224
//
225
string groupCover = 5;
226
227
//
228
string groupName = 6;
229
230
//
231
string groupNotice = 7;
232
233
//
234
int32 status = 8;
235
236
//
237
int32 memberRole = 9;
238
239
//
240
string fansMedalName = 10;
241
242
//
243
uint64 roomId = 11;
244
}
@@ -32,7 +32,7 @@ service Reply {
32
32
}
33
33
34
34
//主评论列表-请求
35
message MainListReq{
35
message MainListReq {
36
36
//目标评论区id
37
37
int64 oid = 1;
38
38
@@ -53,7 +53,7 @@ message MainListReq{
53
53
}
54
54
55
55
//主评论列表-回复
56
message MainListReply{
56
message MainListReply {
57
57
//页面游标
58
58
CursorReply cursor = 1;
59
59
@@ -89,7 +89,7 @@ message MainListReply{
89
89
}
90
90
91
91
//二级评论明细-请求
92
message DetailListReq{
92
message DetailListReq {
93
93
//目标评论区id
94
94
int64 oid = 1;
95
95
@@ -110,7 +110,7 @@ message DetailListReq{
110
110
}
111
111
112
112
//二级评论明细-回复
113
message DetailListReply{
113
message DetailListReply {
114
114
//页面游标
115
115
CursorReply cursor = 1;
116
116
@@ -125,7 +125,7 @@ message DetailListReply{
125
125
}
126
126
127
127
//对话评论树-请求
128
message DialogListReq{
128
message DialogListReq {
129
129
//目标评论区id
130
130
int64 oid = 1;
131
131
@@ -143,7 +143,7 @@ message DialogListReq{
143
143
}
144
144
145
145
//对话评论树-回复
146
message DialogListReply{
146
message DialogListReply {
147
147
//页面游标
148
148
CursorReply cursor = 1;
149
149
@@ -191,7 +191,7 @@ message PreviewListReply {
191
191
}
192
192
193
193
//?-请求
194
message SearchItemPreHookReq{
194
message SearchItemPreHookReq {
195
195
//目标评论区id
196
196
int64 oid = 1;
197
197
@@ -200,7 +200,7 @@ message SearchItemPreHookReq{
200
200
}
201
201
202
202
//?-回复
203
message SearchItemPreHookReply{
203
message SearchItemPreHookReply {
204
204
//
205
205
string placeholderText = 1;
206
206
@@ -212,7 +212,7 @@ message SearchItemPreHookReply{
212
212
}
213
213
214
214
//搜索评论区插入项目-请求
215
message SearchItemReq{
215
message SearchItemReq {
216
216
//页面游标
217
217
SearchItemCursorReq cursor = 1;
218
218
@@ -227,7 +227,7 @@ message SearchItemReq{
227
227
}
228
228
229
229
//搜索评论区插入项目-回复
230
message SearchItemReply{
230
message SearchItemReply {
231
231
//
232
232
SearchItemCursorReply cursor = 1;
233
233
@@ -239,7 +239,7 @@ message SearchItemReply{
239
239
}
240
240
241
241
//排序方式
242
enum Mode{
242
enum Mode {
243
243
//
244
244
DEFAULT = 0;
245
245
@@ -254,7 +254,7 @@ enum Mode{
254
254
}
255
255
256
256
//页面游标请求
257
message CursorReq{
257
message CursorReq {
258
258
//下页数据
259
259
int64 next = 1;
260
260
@@ -266,7 +266,7 @@ message CursorReq{
266
266
}
267
267
268
268
//页面游标回复
269
message CursorReply{
269
message CursorReply {
270
270
//下页数据
271
271
int64 next = 1;
272
272
@@ -284,7 +284,7 @@ message CursorReply{
284
284
}
285
285
286
286
//
287
enum SearchItemType{
287
enum SearchItemType {
288
288
//
289
289
DEFAULT_ITEM_TYPE = 0;
290
290
@@ -299,7 +299,7 @@ enum SearchItemType{
299
299
}
300
300
301
301
//
302
enum DetailListScene{
302
enum DetailListScene {
303
303
//评论区展开
304
304
REPLY = 0;
305
305
@@ -308,7 +308,7 @@ enum DetailListScene{
308
308
}
309
309
310
310
//
311
message SearchItemCursorReq{
311
message SearchItemCursorReq {
312
312
//
313
313
int64 next = 1;
314
314
@@ -317,7 +317,7 @@ message SearchItemCursorReq{
317
317
}
318
318
319
319
//
320
message SearchItemCursorReply{
320
message SearchItemCursorReply {
321
321
//
322
322
bool hasNext = 1;
323
323
@@ -326,7 +326,8 @@ message SearchItemCursorReply{
326
326
}
327
327
328
328
//用户信息
329
message Member{
329
message Member {
330
/**********基础信息**********/
330
331
//UID
331
332
int64 mid = 1;
332
333
@@ -345,7 +346,7 @@ message Member{
345
346
//认证类型
346
347
int64 officialVerifyType = 6;
347
348
348
/****VIP相关****/
349
/**********VIP相关**********/
349
350
//会员类型
350
351
int64 vipType = 7;
351
352
@@ -358,7 +359,7 @@ message Member{
358
359
//会员铭牌样式url
359
360
string vipLabelPath = 10;
360
361
361
/****装扮相关****/
362
/**********装扮相关**********/
362
363
//头像框url
363
364
string garbPendantImage = 11;
364
365
@@ -380,7 +381,7 @@ message Member{
380
381
//是否为专属装扮卡
381
382
bool garbCardIsFan = 17;
382
383
383
/****粉丝勋章相关****/
384
/**********粉丝勋章相关**********/
384
385
//粉丝勋章名
385
386
string fansMedalName = 18;
386
387
@@ -392,7 +393,7 @@ message Member{
392
393
}
393
394
394
395
//表情项
395
message Emote{
396
message Emote {
396
397
//表情大小
397
398
//1:小 2:大
398
399
int64 size = 1;
@@ -402,7 +403,7 @@ message Emote{
402
403
}
403
404
404
405
//话题项
405
message Topic{
406
message Topic {
406
407
//跳转url
407
408
string link = 1;
408
409
@@ -411,7 +412,7 @@ message Topic{
411
412
}
412
413
413
414
//超链项
414
message Url{
415
message Url {
415
416
//标题
416
417
string title = 1;
417
418
@@ -430,12 +431,12 @@ message Url{
430
431
//
431
432
string appPackageName = 6;
432
433
433
//
434
//上报id
434
435
string clickReport = 7;
435
436
}
436
437
437
438
//投票信息
438
message Vote{
439
message Vote {
439
440
//投票id
440
441
int64 id = 1;
441
442
@@ -447,7 +448,7 @@ message Vote{
447
448
}
448
449
449
450
//评论主体信息
450
message Content{
451
message Content {
451
452
//评论文本
452
453
string message = 1;
453
454
@@ -468,7 +469,7 @@ message Content{
468
469
}
469
470
470
471
//评论条目控制字段
471
message ReplyControl{
472
message ReplyControl {
472
473
//操作行为标志
473
474
//0:无 1:已点赞 2:已点踩
474
475
int64 action = 1;
@@ -520,7 +521,7 @@ message ReplyControl{
520
521
}
521
522
522
523
//评论条目信息
523
message ReplyInfo{
524
message ReplyInfo {
524
525
//二级评论列表
525
526
repeated ReplyInfo replies = 1;
526
527
@@ -565,7 +566,7 @@ message ReplyInfo{
565
566
}
566
567
567
568
//评论区控制字段
568
message SubjectControl{
569
message SubjectControl {
569
570
//UP主UID
570
571
int64 upMid = 1;
571
572
@@ -619,7 +620,7 @@ message SubjectControl{
619
620
}
620
621
621
622
//
622
message Notice{
623
message Notice {
623
624
//
624
625
int64 id = 1;
625
626
@@ -631,7 +632,7 @@ message Notice{
631
632
}
632
633
633
634
//
634
message Lottery{
635
message Lottery {
635
636
//
636
637
int64 lotteryId = 1;
637
638
@@ -664,7 +665,7 @@ message Lottery{
664
665
}
665
666
666
667
//
667
message Activity{
668
message Activity {
668
669
//
669
670
int64 activityId = 1;
670
671
@@ -676,7 +677,7 @@ message Activity{
676
677
}
677
678
678
679
//
679
message UpSelection{
680
message UpSelection {
680
681
//
681
682
int64 pendingCount = 1;
682
683
@@ -685,13 +686,13 @@ message UpSelection{
685
686
}
686
687
687
688
//
688
message CM{
689
message CM {
689
690
//
690
691
google.protobuf.Any sourceContent = 1;
691
692
}
692
693
693
694
//
694
message ArticleSearchItem{
695
message ArticleSearchItem {
695
696
//
696
697
string title = 1;
697
698
@@ -703,7 +704,7 @@ message ArticleSearchItem{
703
704
}
704
705
705
706
//
706
message GoodsSearchItem{
707
message GoodsSearchItem {
707
708
//
708
709
int64 id = 1;
709
710
@@ -724,7 +725,7 @@ message GoodsSearchItem{
724
725
}
725
726
726
727
//
727
enum VideoItemCase{
728
enum VideoItemCase {
728
729
//
729
730
VIDEOITEM_NOT_SET = 0;
730
731
@@ -736,7 +737,7 @@ enum VideoItemCase{
736
737
}
737
738
738
739
//
739
message UGCVideoSearchItem{
740
message UGCVideoSearchItem {
740
741
//
741
742
string title = 1;
742
743
@@ -751,7 +752,7 @@ message UGCVideoSearchItem{
751
752
}
752
753
753
754
//
754
message PGCVideoSearchItem{
755
message PGCVideoSearchItem {
755
756
//
756
757
string title = 1;
757
758
@@ -763,7 +764,7 @@ message PGCVideoSearchItem{
763
764
}
764
765
765
766
//
766
message VideoSearchItem{
767
message VideoSearchItem {
767
768
//
768
769
VideoItemCase type = 1;
769
770
@@ -775,7 +776,7 @@ message VideoSearchItem{
775
776
}
776
777
777
778
//
778
enum ItemCase{
779
enum ItemCase {
779
780
//
780
781
ITEM_NOT_SET = 0;
781
782
@@ -790,7 +791,7 @@ enum ItemCase{
790
791
}
791
792
792
793
//
793
message SearchItem{
794
message SearchItem {
794
795
//
795
796
string url = 1;
796
797
@@ -805,7 +806,7 @@ message SearchItem{
805
806
}
806
807
807
808
//
808
message SearchItemReplyExtraInfo{
809
message SearchItemReplyExtraInfo {
809
810
//
810
811
string eventId = 1;
811
812
}
@@ -112,7 +112,7 @@
112
112
113
113
| 字段 | 类型 | 内容 | 备注 |
114
114
| ----------- | ---- | --------------- | ------------------------------ |
115
| id | num | 系统提示类型ID | 20:纪念账号 |
115
| id | num | 系统提示类型ID | 20:纪念账号<br />22:合约诉讼 |
116
116
| content | str | 提示文案 | |
117
117
| url | str | 提示信息页面url | |
118
118
| notice_type | num | ? | 作用尚不明确<br />此字段非必须 |