fishpi 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/article.d.ts +71 -0
- package/lib/article.js +271 -0
- package/lib/breezemoon.d.ts +25 -0
- package/lib/breezemoon.js +116 -0
- package/lib/chat.d.ts +66 -0
- package/lib/chat.js +324 -0
- package/lib/chatroom.d.ts +90 -0
- package/lib/chatroom.js +516 -0
- package/lib/comment.d.ts +31 -0
- package/lib/comment.js +192 -0
- package/lib/emoji.d.ts +201 -0
- package/lib/emoji.js +381 -0
- package/lib/index.d.ts +78 -0
- package/lib/index.js +309 -0
- package/lib/notice.d.ts +31 -0
- package/lib/notice.js +157 -0
- package/lib/typing.d.ts +2073 -0
- package/lib/typing.js +446 -0
- package/lib/user.d.ts +35 -0
- package/lib/user.js +225 -0
- package/lib/utils.d.ts +8 -0
- package/lib/utils.js +152 -0
- package/package.json +2 -2
package/lib/typing.d.ts
ADDED
|
@@ -0,0 +1,2073 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Api 响应
|
|
3
|
+
*/
|
|
4
|
+
export interface ApiResponse<T> {
|
|
5
|
+
/**
|
|
6
|
+
* 请求状态
|
|
7
|
+
*/
|
|
8
|
+
code?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 请求状态
|
|
11
|
+
*/
|
|
12
|
+
result?: number;
|
|
13
|
+
/**
|
|
14
|
+
* 请求信息
|
|
15
|
+
*/
|
|
16
|
+
msg?: string;
|
|
17
|
+
/**
|
|
18
|
+
* 请求数据
|
|
19
|
+
*/
|
|
20
|
+
data?: T;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* ApiKey 响应
|
|
24
|
+
*/
|
|
25
|
+
export interface ApiKey {
|
|
26
|
+
/**
|
|
27
|
+
* 请求状态
|
|
28
|
+
*/
|
|
29
|
+
code: number;
|
|
30
|
+
/**
|
|
31
|
+
* 消息
|
|
32
|
+
*/
|
|
33
|
+
msg: string;
|
|
34
|
+
/**
|
|
35
|
+
* Api Key
|
|
36
|
+
*/
|
|
37
|
+
Key: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 数据类型
|
|
41
|
+
*/
|
|
42
|
+
export declare enum DataType {
|
|
43
|
+
/**
|
|
44
|
+
* 文章
|
|
45
|
+
*/
|
|
46
|
+
article = 0,
|
|
47
|
+
/**
|
|
48
|
+
* 评论
|
|
49
|
+
*/
|
|
50
|
+
comment = 1,
|
|
51
|
+
/**
|
|
52
|
+
* @
|
|
53
|
+
*/
|
|
54
|
+
at = 2,
|
|
55
|
+
/**
|
|
56
|
+
* 被评论
|
|
57
|
+
*/
|
|
58
|
+
commented = 3,
|
|
59
|
+
/**
|
|
60
|
+
* 关注者
|
|
61
|
+
*/
|
|
62
|
+
followingUser = 4,
|
|
63
|
+
/**
|
|
64
|
+
* 积分 - 充值
|
|
65
|
+
*/
|
|
66
|
+
pointCharge = 5,
|
|
67
|
+
/**
|
|
68
|
+
* 积分 - 转账
|
|
69
|
+
*/
|
|
70
|
+
pointTransfer = 6,
|
|
71
|
+
/**
|
|
72
|
+
* 积分 - 文章打赏
|
|
73
|
+
*/
|
|
74
|
+
pointArticleReward = 7,
|
|
75
|
+
/**
|
|
76
|
+
* 积分 - 评论感谢
|
|
77
|
+
*/
|
|
78
|
+
pointCommentThank = 8,
|
|
79
|
+
/**
|
|
80
|
+
* 同城广播
|
|
81
|
+
*/
|
|
82
|
+
broadcast = 9,
|
|
83
|
+
/**
|
|
84
|
+
* 积分 - 交易
|
|
85
|
+
*/
|
|
86
|
+
pointExchange = 10,
|
|
87
|
+
/**
|
|
88
|
+
* 积分 - 滥用扣除
|
|
89
|
+
*/
|
|
90
|
+
abusePointDeduct = 11,
|
|
91
|
+
/**
|
|
92
|
+
* 积分 - 文章被感谢
|
|
93
|
+
*/
|
|
94
|
+
pointArticleThank = 12,
|
|
95
|
+
/**
|
|
96
|
+
* 回复
|
|
97
|
+
*/
|
|
98
|
+
reply = 13,
|
|
99
|
+
/**
|
|
100
|
+
* 使用邀请码
|
|
101
|
+
*/
|
|
102
|
+
invitecodeUsed = 14,
|
|
103
|
+
/**
|
|
104
|
+
* 系统公告 - 文章
|
|
105
|
+
*/
|
|
106
|
+
sysAnnounceArticle = 15,
|
|
107
|
+
/**
|
|
108
|
+
* 系统公告 - 新用户
|
|
109
|
+
*/
|
|
110
|
+
sysAnnounceNewUser = 16,
|
|
111
|
+
/**
|
|
112
|
+
* 新的关注者
|
|
113
|
+
*/
|
|
114
|
+
newFollower = 17,
|
|
115
|
+
/**
|
|
116
|
+
* 邀请链接
|
|
117
|
+
*/
|
|
118
|
+
invitationLinkUsed = 18,
|
|
119
|
+
/**
|
|
120
|
+
* 系统通知 - 角色变化
|
|
121
|
+
*/
|
|
122
|
+
sysAnnounceRoleChanged = 19,
|
|
123
|
+
/**
|
|
124
|
+
* 关注的文章更新
|
|
125
|
+
*/
|
|
126
|
+
followingArticleUpdate = 20,
|
|
127
|
+
/**
|
|
128
|
+
* 关注的文章评论
|
|
129
|
+
*/
|
|
130
|
+
followingArticleComment = 21,
|
|
131
|
+
/**
|
|
132
|
+
* 积分 - 文章优选
|
|
133
|
+
*/
|
|
134
|
+
pointPerfectArticle = 22,
|
|
135
|
+
/**
|
|
136
|
+
* 文章新的被关注者
|
|
137
|
+
*/
|
|
138
|
+
articleNewFollower = 23,
|
|
139
|
+
/**
|
|
140
|
+
* 文章新的关注者
|
|
141
|
+
*/
|
|
142
|
+
articleNewWatcher = 24,
|
|
143
|
+
/**
|
|
144
|
+
* 评论点赞
|
|
145
|
+
*/
|
|
146
|
+
commentVoteUp = 25,
|
|
147
|
+
/**
|
|
148
|
+
* 评论点踩
|
|
149
|
+
*/
|
|
150
|
+
commentVoteDown = 26,
|
|
151
|
+
/**
|
|
152
|
+
* 文章被点赞
|
|
153
|
+
*/
|
|
154
|
+
articleVoteUp = 27,
|
|
155
|
+
/**
|
|
156
|
+
* 文章被点踩
|
|
157
|
+
*/
|
|
158
|
+
articleVoteDown = 28,
|
|
159
|
+
/**
|
|
160
|
+
* 积分 - 评论被接受
|
|
161
|
+
*/
|
|
162
|
+
pointCommentAccept = 33,
|
|
163
|
+
/**
|
|
164
|
+
* 积分 - 举报处理
|
|
165
|
+
*/
|
|
166
|
+
pointReportHandled = 36,
|
|
167
|
+
/**
|
|
168
|
+
* 聊天室 @
|
|
169
|
+
*/
|
|
170
|
+
chatRoomAt = 38,
|
|
171
|
+
/**
|
|
172
|
+
* 专属红包提醒
|
|
173
|
+
*/
|
|
174
|
+
redPacket = 39
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* 登录信息
|
|
178
|
+
*/
|
|
179
|
+
export interface Account {
|
|
180
|
+
/**
|
|
181
|
+
* 用户名
|
|
182
|
+
*/
|
|
183
|
+
username: string;
|
|
184
|
+
/**
|
|
185
|
+
* 密码
|
|
186
|
+
*/
|
|
187
|
+
passwd: string;
|
|
188
|
+
/**
|
|
189
|
+
* 二次验证码,非必填
|
|
190
|
+
*/
|
|
191
|
+
mfaCode?: string;
|
|
192
|
+
}
|
|
193
|
+
export declare enum UserAppRole {
|
|
194
|
+
/**
|
|
195
|
+
* 黑客
|
|
196
|
+
*/
|
|
197
|
+
Hack = 0,
|
|
198
|
+
/**
|
|
199
|
+
* 画家
|
|
200
|
+
*/
|
|
201
|
+
Artist = 1
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* 用户信息
|
|
205
|
+
*/
|
|
206
|
+
export interface UserInfo {
|
|
207
|
+
/**
|
|
208
|
+
* 用户 id
|
|
209
|
+
*/
|
|
210
|
+
oId: string;
|
|
211
|
+
/**
|
|
212
|
+
* 用户编号
|
|
213
|
+
*/
|
|
214
|
+
userNo: string;
|
|
215
|
+
/**
|
|
216
|
+
* 用户名
|
|
217
|
+
*/
|
|
218
|
+
userName: string;
|
|
219
|
+
/**
|
|
220
|
+
* 昵称
|
|
221
|
+
*/
|
|
222
|
+
userNickname: string;
|
|
223
|
+
/**
|
|
224
|
+
* 首页地址
|
|
225
|
+
*/
|
|
226
|
+
userURL: string;
|
|
227
|
+
/**
|
|
228
|
+
* 所在城市
|
|
229
|
+
*/
|
|
230
|
+
userCity: string;
|
|
231
|
+
/**
|
|
232
|
+
* 签名
|
|
233
|
+
*/
|
|
234
|
+
userIntro: string;
|
|
235
|
+
/**
|
|
236
|
+
* 是否在线
|
|
237
|
+
*/
|
|
238
|
+
userOnlineFlag: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* 用户积分
|
|
241
|
+
*/
|
|
242
|
+
userPoint: number;
|
|
243
|
+
/**
|
|
244
|
+
* 用户组
|
|
245
|
+
*/
|
|
246
|
+
userRole: string;
|
|
247
|
+
/**
|
|
248
|
+
* 角色
|
|
249
|
+
*/
|
|
250
|
+
userAppRole: UserAppRole;
|
|
251
|
+
/**
|
|
252
|
+
* 用户头像地址
|
|
253
|
+
*/
|
|
254
|
+
userAvatarURL: string;
|
|
255
|
+
/**
|
|
256
|
+
* 用户卡片背景
|
|
257
|
+
*/
|
|
258
|
+
cardBg: string;
|
|
259
|
+
/**
|
|
260
|
+
* 用户关注数
|
|
261
|
+
*/
|
|
262
|
+
followingUserCount: number;
|
|
263
|
+
/**
|
|
264
|
+
* 用户被关注数
|
|
265
|
+
*/
|
|
266
|
+
followerCount: number;
|
|
267
|
+
/**
|
|
268
|
+
* 在线时长,单位分钟
|
|
269
|
+
*/
|
|
270
|
+
onlineMinute: number;
|
|
271
|
+
/**
|
|
272
|
+
* 是否已经关注,未登录则为 `hide`
|
|
273
|
+
*/
|
|
274
|
+
canFollow: 'hide' | 'no' | 'yes';
|
|
275
|
+
/**
|
|
276
|
+
* 用户所有勋章列表,包含未佩戴
|
|
277
|
+
*/
|
|
278
|
+
allMetalOwned: MetalList;
|
|
279
|
+
/**
|
|
280
|
+
* 用户勋章列表
|
|
281
|
+
*/
|
|
282
|
+
sysMetal: MetalList;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* 猜拳类型
|
|
286
|
+
*/
|
|
287
|
+
export declare enum GestureType {
|
|
288
|
+
/**
|
|
289
|
+
* 石头
|
|
290
|
+
*/
|
|
291
|
+
Rock = 0,
|
|
292
|
+
/**
|
|
293
|
+
* 剪刀
|
|
294
|
+
*/
|
|
295
|
+
Scissors = 1,
|
|
296
|
+
/**
|
|
297
|
+
* 布
|
|
298
|
+
*/
|
|
299
|
+
Paper = 2
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* 红包类型
|
|
303
|
+
*/
|
|
304
|
+
export declare enum RedPacketType {
|
|
305
|
+
/**
|
|
306
|
+
* 拼手气
|
|
307
|
+
*/
|
|
308
|
+
Random = "random",
|
|
309
|
+
/**
|
|
310
|
+
* 平分
|
|
311
|
+
*/
|
|
312
|
+
Average = "average",
|
|
313
|
+
/**
|
|
314
|
+
* 专属
|
|
315
|
+
*/
|
|
316
|
+
Specify = "specify",
|
|
317
|
+
/**
|
|
318
|
+
* 心跳
|
|
319
|
+
*/
|
|
320
|
+
Heartbeat = "heartbeat",
|
|
321
|
+
/**
|
|
322
|
+
* 猜拳
|
|
323
|
+
*/
|
|
324
|
+
RockPaperScissors = "rockPaperScissors"
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* 红包数据
|
|
328
|
+
*/
|
|
329
|
+
export interface RedPacket {
|
|
330
|
+
/**
|
|
331
|
+
* 红包类型
|
|
332
|
+
*/
|
|
333
|
+
type: RedPacketType;
|
|
334
|
+
/**
|
|
335
|
+
* 红包积分
|
|
336
|
+
*/
|
|
337
|
+
money: number;
|
|
338
|
+
/**
|
|
339
|
+
* 红包个数
|
|
340
|
+
*/
|
|
341
|
+
count: number;
|
|
342
|
+
/**
|
|
343
|
+
* 祝福语
|
|
344
|
+
*/
|
|
345
|
+
msg: string;
|
|
346
|
+
/**
|
|
347
|
+
* 接收者,专属红包有效
|
|
348
|
+
*/
|
|
349
|
+
recivers?: Array<string>;
|
|
350
|
+
/**
|
|
351
|
+
* 出拳,猜拳红包有效
|
|
352
|
+
*/
|
|
353
|
+
gesture?: GestureType;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* 红包领取者信息
|
|
357
|
+
*/
|
|
358
|
+
export interface RedPacketGot {
|
|
359
|
+
/**
|
|
360
|
+
* 用户 id
|
|
361
|
+
*/
|
|
362
|
+
userId: string;
|
|
363
|
+
/**
|
|
364
|
+
* 用户名
|
|
365
|
+
*/
|
|
366
|
+
userName: string;
|
|
367
|
+
/**
|
|
368
|
+
* 用户头像
|
|
369
|
+
*/
|
|
370
|
+
avatar: string;
|
|
371
|
+
/**
|
|
372
|
+
* 领取到的积分
|
|
373
|
+
*/
|
|
374
|
+
userMoney: number;
|
|
375
|
+
/**
|
|
376
|
+
* 领取积分时间
|
|
377
|
+
*/
|
|
378
|
+
time: string;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* 红包历史信息
|
|
382
|
+
*/
|
|
383
|
+
export interface RedPacketMessage {
|
|
384
|
+
/**
|
|
385
|
+
* 消息类型,固定为 redPacket
|
|
386
|
+
*/
|
|
387
|
+
msgType: string;
|
|
388
|
+
/**
|
|
389
|
+
* 红包数
|
|
390
|
+
*/
|
|
391
|
+
count: number;
|
|
392
|
+
/**
|
|
393
|
+
* 领取数
|
|
394
|
+
*/
|
|
395
|
+
got: number;
|
|
396
|
+
/**
|
|
397
|
+
* 内含积分
|
|
398
|
+
*/
|
|
399
|
+
money: number;
|
|
400
|
+
/**
|
|
401
|
+
* 祝福语
|
|
402
|
+
*/
|
|
403
|
+
msg: string;
|
|
404
|
+
/**
|
|
405
|
+
* 发送者 id
|
|
406
|
+
*/
|
|
407
|
+
senderId: string;
|
|
408
|
+
/**
|
|
409
|
+
* 红包类型
|
|
410
|
+
*/
|
|
411
|
+
interface: string;
|
|
412
|
+
/**
|
|
413
|
+
* 接收者,专属红包有效
|
|
414
|
+
*/
|
|
415
|
+
recivers: Array<string>;
|
|
416
|
+
/**
|
|
417
|
+
* 已领取者列表
|
|
418
|
+
*/
|
|
419
|
+
who: Array<RedPacketGot>;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* 红包信息
|
|
423
|
+
*/
|
|
424
|
+
export interface RedPacketInfo {
|
|
425
|
+
/**
|
|
426
|
+
* 红包基本信息
|
|
427
|
+
*/
|
|
428
|
+
info: {
|
|
429
|
+
/**
|
|
430
|
+
* 数量
|
|
431
|
+
*/
|
|
432
|
+
count: number;
|
|
433
|
+
/**
|
|
434
|
+
* 猜拳类型
|
|
435
|
+
*/
|
|
436
|
+
gesture?: GestureType;
|
|
437
|
+
/**
|
|
438
|
+
* 领取数
|
|
439
|
+
*/
|
|
440
|
+
got: number;
|
|
441
|
+
/**
|
|
442
|
+
* 祝福语
|
|
443
|
+
*/
|
|
444
|
+
msg: string;
|
|
445
|
+
/**
|
|
446
|
+
* 发送者用户名
|
|
447
|
+
*/
|
|
448
|
+
userName: string;
|
|
449
|
+
/**
|
|
450
|
+
* 用户头像
|
|
451
|
+
*/
|
|
452
|
+
userAvatarURL: string;
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* 接收者,专属红包有效
|
|
456
|
+
*/
|
|
457
|
+
recivers: Array<string>;
|
|
458
|
+
/**
|
|
459
|
+
* 已领取者列表
|
|
460
|
+
*/
|
|
461
|
+
who: Array<RedPacketGot>;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* 红包状态信息
|
|
465
|
+
*/
|
|
466
|
+
export interface RedPacketStatusMsg {
|
|
467
|
+
/**
|
|
468
|
+
* 对应红包消息 oId
|
|
469
|
+
*/
|
|
470
|
+
oId: string;
|
|
471
|
+
/**
|
|
472
|
+
* 红包个数
|
|
473
|
+
*/
|
|
474
|
+
count: number;
|
|
475
|
+
/**
|
|
476
|
+
* 已领取数量
|
|
477
|
+
*/
|
|
478
|
+
got: number;
|
|
479
|
+
/**
|
|
480
|
+
* 发送者信息
|
|
481
|
+
*/
|
|
482
|
+
whoGive: any;
|
|
483
|
+
/**
|
|
484
|
+
* 领取者信息
|
|
485
|
+
*/
|
|
486
|
+
whoGot: Array<any>;
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* 徽章信息
|
|
490
|
+
*/
|
|
491
|
+
export interface Metal {
|
|
492
|
+
/**
|
|
493
|
+
* 完整徽章地址(含文字)
|
|
494
|
+
*/
|
|
495
|
+
url?: string;
|
|
496
|
+
/**
|
|
497
|
+
* 徽章地址(不含文字)
|
|
498
|
+
*/
|
|
499
|
+
icon?: string;
|
|
500
|
+
/**
|
|
501
|
+
* 徽章属性
|
|
502
|
+
*/
|
|
503
|
+
attr: {
|
|
504
|
+
/**
|
|
505
|
+
* 徽标图地址
|
|
506
|
+
*/
|
|
507
|
+
url: string;
|
|
508
|
+
/**
|
|
509
|
+
* 背景色
|
|
510
|
+
*/
|
|
511
|
+
backcolor: string;
|
|
512
|
+
/**
|
|
513
|
+
* 文字颜色
|
|
514
|
+
*/
|
|
515
|
+
fontcolor: string;
|
|
516
|
+
} | string;
|
|
517
|
+
/**
|
|
518
|
+
* 徽章名
|
|
519
|
+
*/
|
|
520
|
+
name: string;
|
|
521
|
+
/**
|
|
522
|
+
* 徽章描述
|
|
523
|
+
*/
|
|
524
|
+
description: string;
|
|
525
|
+
/**
|
|
526
|
+
* 徽章数据
|
|
527
|
+
*/
|
|
528
|
+
data: string;
|
|
529
|
+
/**
|
|
530
|
+
* 是否佩戴
|
|
531
|
+
*/
|
|
532
|
+
enable: boolean;
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* 徽章列表
|
|
536
|
+
*/
|
|
537
|
+
export type MetalList = Array<Metal>;
|
|
538
|
+
/**
|
|
539
|
+
* 聊天室消息
|
|
540
|
+
*/
|
|
541
|
+
export interface ChatRoomMessage {
|
|
542
|
+
/**
|
|
543
|
+
* 消息 Id
|
|
544
|
+
*/
|
|
545
|
+
oId: string;
|
|
546
|
+
/**
|
|
547
|
+
* 发送者用户名
|
|
548
|
+
*/
|
|
549
|
+
userName: string;
|
|
550
|
+
/**
|
|
551
|
+
* 用户昵称
|
|
552
|
+
*/
|
|
553
|
+
userNickname: string;
|
|
554
|
+
/**
|
|
555
|
+
* 用户头像
|
|
556
|
+
*/
|
|
557
|
+
userAvatarURL: string;
|
|
558
|
+
/**
|
|
559
|
+
* 用户徽章
|
|
560
|
+
*/
|
|
561
|
+
sysMetal: MetalList;
|
|
562
|
+
/**
|
|
563
|
+
* 消息内容
|
|
564
|
+
*/
|
|
565
|
+
content: string | RedPacketMessage;
|
|
566
|
+
/**
|
|
567
|
+
* 发送时间
|
|
568
|
+
*/
|
|
569
|
+
time: string;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* 历史消息类型
|
|
573
|
+
*/
|
|
574
|
+
export declare enum ChatContentType {
|
|
575
|
+
/**
|
|
576
|
+
* 原始 Markdown
|
|
577
|
+
*/
|
|
578
|
+
Markdown = "md",
|
|
579
|
+
/**
|
|
580
|
+
* 渲染 HTML
|
|
581
|
+
*/
|
|
582
|
+
HTML = "html"
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* chatroom get 接口获取 oId 的相关消息类型
|
|
586
|
+
*/
|
|
587
|
+
export declare enum ChatMessageType {
|
|
588
|
+
/**
|
|
589
|
+
* 前后消息
|
|
590
|
+
*/
|
|
591
|
+
Context = 0,
|
|
592
|
+
/**
|
|
593
|
+
* 前面的消息
|
|
594
|
+
*/
|
|
595
|
+
Before = 1,
|
|
596
|
+
/**
|
|
597
|
+
* 后面的消息
|
|
598
|
+
*/
|
|
599
|
+
After = 2
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* 聊天室消息类型
|
|
603
|
+
*/
|
|
604
|
+
export declare enum ChatRoomMessageType {
|
|
605
|
+
/**
|
|
606
|
+
* 在线用户
|
|
607
|
+
*/
|
|
608
|
+
online = "online",
|
|
609
|
+
/**
|
|
610
|
+
* 话题修改
|
|
611
|
+
*/
|
|
612
|
+
discussChanged = "discussChanged",
|
|
613
|
+
/**
|
|
614
|
+
* 消息撤回
|
|
615
|
+
*/
|
|
616
|
+
revoke = "revoke",
|
|
617
|
+
/**
|
|
618
|
+
* 消息
|
|
619
|
+
*/
|
|
620
|
+
msg = "msg",
|
|
621
|
+
/**
|
|
622
|
+
* 红包
|
|
623
|
+
*/
|
|
624
|
+
redPacket = "redPacket",
|
|
625
|
+
/**
|
|
626
|
+
* 红包状态
|
|
627
|
+
*/
|
|
628
|
+
redPacketStatus = "redPacketStatus",
|
|
629
|
+
/**
|
|
630
|
+
* 弹幕
|
|
631
|
+
*/
|
|
632
|
+
barrager = "barrager"
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* 聊天室消息
|
|
636
|
+
*/
|
|
637
|
+
export interface Message {
|
|
638
|
+
/**
|
|
639
|
+
* 消息类型,
|
|
640
|
+
*/
|
|
641
|
+
interface: ChatRoomMessageType | string;
|
|
642
|
+
/**
|
|
643
|
+
* 消息内容
|
|
644
|
+
*/
|
|
645
|
+
data: OnlineMsg | discussMsg | RevokeMsg | ChatMsg | RedPacketMessage | RedPacketStatusMsg | BarragerMsg;
|
|
646
|
+
}
|
|
647
|
+
export interface BarragerMsg {
|
|
648
|
+
barragerContent: string;
|
|
649
|
+
userAvatarURL: string;
|
|
650
|
+
userAvatarURL20: string;
|
|
651
|
+
userNickname: string;
|
|
652
|
+
barragerColor: string;
|
|
653
|
+
userName: string;
|
|
654
|
+
userAvatarURL210: string;
|
|
655
|
+
userAvatarURL48: string;
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* 在线用户消息
|
|
659
|
+
*/
|
|
660
|
+
export type OnlineMsg = Array<{
|
|
661
|
+
/**
|
|
662
|
+
* 用户首页
|
|
663
|
+
*/
|
|
664
|
+
homePage: string;
|
|
665
|
+
/**
|
|
666
|
+
* 用户头像
|
|
667
|
+
*/
|
|
668
|
+
userAvatarURL: string;
|
|
669
|
+
/**
|
|
670
|
+
* 用户名
|
|
671
|
+
*/
|
|
672
|
+
userName: string;
|
|
673
|
+
}>;
|
|
674
|
+
/**
|
|
675
|
+
* 主题修改消息,主题内容
|
|
676
|
+
*/
|
|
677
|
+
export type discussMsg = string;
|
|
678
|
+
/**
|
|
679
|
+
* 撤回消息,被撤回消息的 oId
|
|
680
|
+
*/
|
|
681
|
+
export type RevokeMsg = string;
|
|
682
|
+
/**
|
|
683
|
+
* 聊天消息
|
|
684
|
+
*/
|
|
685
|
+
export interface ChatMsg {
|
|
686
|
+
/**
|
|
687
|
+
* 消息 oId
|
|
688
|
+
*/
|
|
689
|
+
oId: string;
|
|
690
|
+
/**
|
|
691
|
+
* 消息发送时间
|
|
692
|
+
*/
|
|
693
|
+
time: string;
|
|
694
|
+
/**
|
|
695
|
+
* 发送者用户名
|
|
696
|
+
*/
|
|
697
|
+
userName: string;
|
|
698
|
+
/**
|
|
699
|
+
* 发送者昵称
|
|
700
|
+
*/
|
|
701
|
+
userNickname: string;
|
|
702
|
+
/**
|
|
703
|
+
* 发送者头像
|
|
704
|
+
*/
|
|
705
|
+
userAvatarURL: string;
|
|
706
|
+
/**
|
|
707
|
+
* 消息内容
|
|
708
|
+
*/
|
|
709
|
+
content: string;
|
|
710
|
+
/**
|
|
711
|
+
* 消息内容 Markdown
|
|
712
|
+
*/
|
|
713
|
+
md: string;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* @ 用户列表
|
|
717
|
+
*/
|
|
718
|
+
export type AtUserList = Array<{
|
|
719
|
+
/**
|
|
720
|
+
* 用户名
|
|
721
|
+
*/
|
|
722
|
+
userName: string;
|
|
723
|
+
/**
|
|
724
|
+
* 用户头像
|
|
725
|
+
*/
|
|
726
|
+
userAvatarURL: string;
|
|
727
|
+
/**
|
|
728
|
+
* 全小写用户名
|
|
729
|
+
*/
|
|
730
|
+
userNameLowerCase: string;
|
|
731
|
+
}>;
|
|
732
|
+
/**
|
|
733
|
+
* 上传文件响应
|
|
734
|
+
*/
|
|
735
|
+
export interface UploadInfo {
|
|
736
|
+
/**
|
|
737
|
+
* 上传失败文件
|
|
738
|
+
*/
|
|
739
|
+
errFiles: Array<string>;
|
|
740
|
+
/**
|
|
741
|
+
* 上传成功文件
|
|
742
|
+
*/
|
|
743
|
+
succMap: {
|
|
744
|
+
/**
|
|
745
|
+
* Key 是文件名,value 为地址
|
|
746
|
+
*/
|
|
747
|
+
[key: string]: string;
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* 通知类型
|
|
752
|
+
*/
|
|
753
|
+
export declare enum NoticeType {
|
|
754
|
+
/**
|
|
755
|
+
* 积分
|
|
756
|
+
*/
|
|
757
|
+
Point = "point",
|
|
758
|
+
/**
|
|
759
|
+
* 评论
|
|
760
|
+
*/
|
|
761
|
+
Comment = "commented",
|
|
762
|
+
/**
|
|
763
|
+
* 回复
|
|
764
|
+
*/
|
|
765
|
+
Reply = "reply",
|
|
766
|
+
/**
|
|
767
|
+
* 提及我的
|
|
768
|
+
*/
|
|
769
|
+
At = "at",
|
|
770
|
+
/**
|
|
771
|
+
* 我关注的
|
|
772
|
+
*/
|
|
773
|
+
Following = "following",
|
|
774
|
+
/**
|
|
775
|
+
* 同城
|
|
776
|
+
*/
|
|
777
|
+
Broadcast = "broadcast",
|
|
778
|
+
/**
|
|
779
|
+
* 系统
|
|
780
|
+
*/
|
|
781
|
+
System = "sys-announce"
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* 通知列表
|
|
785
|
+
*/
|
|
786
|
+
export type NoticeList = Array<NoticePoint | NoticeComment | NoticeAt | NoticeFollow | NoticeSystem>;
|
|
787
|
+
/**
|
|
788
|
+
* 通知数
|
|
789
|
+
*/
|
|
790
|
+
export interface NoticeCount {
|
|
791
|
+
/**
|
|
792
|
+
* 请求结果,成功为 0
|
|
793
|
+
*/
|
|
794
|
+
code: number;
|
|
795
|
+
/**
|
|
796
|
+
* 用户是否启用 Web 通知
|
|
797
|
+
*/
|
|
798
|
+
userNotifyStatus: boolean;
|
|
799
|
+
/**
|
|
800
|
+
* 未读通知数
|
|
801
|
+
*/
|
|
802
|
+
unreadNotificationCnt: number;
|
|
803
|
+
/**
|
|
804
|
+
* 未读回复通知数
|
|
805
|
+
*/
|
|
806
|
+
unreadReplyNotificationCnt: number;
|
|
807
|
+
/**
|
|
808
|
+
* 未读积分通知数
|
|
809
|
+
*/
|
|
810
|
+
unreadPointNotificationCnt: number;
|
|
811
|
+
/**
|
|
812
|
+
* 未读 @ 通知数
|
|
813
|
+
*/
|
|
814
|
+
unreadAtNotificationCnt: number;
|
|
815
|
+
/**
|
|
816
|
+
* 未读同城通知数
|
|
817
|
+
*/
|
|
818
|
+
unreadBroadcastNotificationCnt: number;
|
|
819
|
+
/**
|
|
820
|
+
* 未读系统通知数
|
|
821
|
+
*/
|
|
822
|
+
unreadSysAnnounceNotificationCnt: number;
|
|
823
|
+
/**
|
|
824
|
+
* 未读关注者通知数
|
|
825
|
+
*/
|
|
826
|
+
unreadNewFollowerNotificationCnt: number;
|
|
827
|
+
/**
|
|
828
|
+
* 未读关注通知数
|
|
829
|
+
*/
|
|
830
|
+
unreadFollowingNotificationCnt: number;
|
|
831
|
+
/**
|
|
832
|
+
* 未读评论通知数
|
|
833
|
+
*/
|
|
834
|
+
unreadCommentedNotificationCnt: number;
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* 积分通知
|
|
838
|
+
*/
|
|
839
|
+
export interface NoticePoint {
|
|
840
|
+
/**
|
|
841
|
+
* 通知 id
|
|
842
|
+
*/
|
|
843
|
+
oId: string;
|
|
844
|
+
/**
|
|
845
|
+
* 数据 id
|
|
846
|
+
*/
|
|
847
|
+
dataId: string;
|
|
848
|
+
/**
|
|
849
|
+
* 用户 id
|
|
850
|
+
*/
|
|
851
|
+
userId: string;
|
|
852
|
+
/**
|
|
853
|
+
* 数据类型
|
|
854
|
+
*/
|
|
855
|
+
dataType: DataType;
|
|
856
|
+
/**
|
|
857
|
+
* 通知描述
|
|
858
|
+
*/
|
|
859
|
+
description: string;
|
|
860
|
+
/**
|
|
861
|
+
* 是否已读
|
|
862
|
+
*/
|
|
863
|
+
hasRead: boolean;
|
|
864
|
+
/**
|
|
865
|
+
* 创建日期
|
|
866
|
+
*/
|
|
867
|
+
createTime: string;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* 评论/回帖通知
|
|
871
|
+
*/
|
|
872
|
+
export interface NoticeComment {
|
|
873
|
+
/**
|
|
874
|
+
* 通知 id
|
|
875
|
+
*/
|
|
876
|
+
oId: string;
|
|
877
|
+
/**
|
|
878
|
+
* 文章标题
|
|
879
|
+
*/
|
|
880
|
+
commentArticleTitle: string;
|
|
881
|
+
/**
|
|
882
|
+
* 文章作者
|
|
883
|
+
*/
|
|
884
|
+
commentAuthorName: string;
|
|
885
|
+
/**
|
|
886
|
+
* 作者头像
|
|
887
|
+
*/
|
|
888
|
+
commentAuthorThumbnailURL: string;
|
|
889
|
+
/**
|
|
890
|
+
* 文章类型
|
|
891
|
+
*/
|
|
892
|
+
commentArticleType: number;
|
|
893
|
+
/**
|
|
894
|
+
* 是否精选
|
|
895
|
+
*/
|
|
896
|
+
commentArticlePerfect: number;
|
|
897
|
+
/**
|
|
898
|
+
* 评论内容
|
|
899
|
+
*/
|
|
900
|
+
commentContent: string;
|
|
901
|
+
/**
|
|
902
|
+
* 评论地址
|
|
903
|
+
*/
|
|
904
|
+
commentSharpURL: string;
|
|
905
|
+
/**
|
|
906
|
+
* 是否已读
|
|
907
|
+
*/
|
|
908
|
+
hasRead: boolean;
|
|
909
|
+
/**
|
|
910
|
+
* 评论时间
|
|
911
|
+
*/
|
|
912
|
+
commentCreateTime: string;
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* 提到我通知
|
|
916
|
+
*/
|
|
917
|
+
export interface NoticeAt {
|
|
918
|
+
/**
|
|
919
|
+
* 通知 id
|
|
920
|
+
*/
|
|
921
|
+
oId: string;
|
|
922
|
+
/**
|
|
923
|
+
* 数据类型
|
|
924
|
+
*/
|
|
925
|
+
dataType: DataType;
|
|
926
|
+
/**
|
|
927
|
+
* 用户名
|
|
928
|
+
*/
|
|
929
|
+
userName: string;
|
|
930
|
+
/**
|
|
931
|
+
* 用户头像
|
|
932
|
+
*/
|
|
933
|
+
userAvatarURL: string;
|
|
934
|
+
/**
|
|
935
|
+
* 通知内容
|
|
936
|
+
*/
|
|
937
|
+
content: string;
|
|
938
|
+
/**
|
|
939
|
+
* 是否已读
|
|
940
|
+
*/
|
|
941
|
+
hasRead: boolean;
|
|
942
|
+
/**
|
|
943
|
+
* 创建时间
|
|
944
|
+
*/
|
|
945
|
+
createTime: string;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* 我关注的通知
|
|
949
|
+
*/
|
|
950
|
+
export interface NoticeFollow {
|
|
951
|
+
/**
|
|
952
|
+
* 通知 Id
|
|
953
|
+
*/
|
|
954
|
+
oId: string;
|
|
955
|
+
/**
|
|
956
|
+
* 文章地址
|
|
957
|
+
*/
|
|
958
|
+
url: string;
|
|
959
|
+
/**
|
|
960
|
+
* 数据类型
|
|
961
|
+
*/
|
|
962
|
+
dataType: DataType;
|
|
963
|
+
/**
|
|
964
|
+
* 文章标题
|
|
965
|
+
*/
|
|
966
|
+
articleTitle: string;
|
|
967
|
+
/**
|
|
968
|
+
* 作者
|
|
969
|
+
*/
|
|
970
|
+
authorName: string;
|
|
971
|
+
/**
|
|
972
|
+
* 通知内容
|
|
973
|
+
*/
|
|
974
|
+
content: string;
|
|
975
|
+
/**
|
|
976
|
+
* 是否评论
|
|
977
|
+
*/
|
|
978
|
+
isComment: boolean;
|
|
979
|
+
/**
|
|
980
|
+
* 作者头像
|
|
981
|
+
*/
|
|
982
|
+
thumbnailURL: string;
|
|
983
|
+
/**
|
|
984
|
+
* 文章评论数
|
|
985
|
+
*/
|
|
986
|
+
articleCommentCount: number;
|
|
987
|
+
/**
|
|
988
|
+
* 是否精选
|
|
989
|
+
*/
|
|
990
|
+
articlePerfect: number;
|
|
991
|
+
/**
|
|
992
|
+
* 文章标签列表
|
|
993
|
+
*/
|
|
994
|
+
articleTagObjs: Array<ArticleTag>;
|
|
995
|
+
/**
|
|
996
|
+
* 文章标签
|
|
997
|
+
*/
|
|
998
|
+
articleTags: string;
|
|
999
|
+
/**
|
|
1000
|
+
* 文章类型
|
|
1001
|
+
*/
|
|
1002
|
+
articleType: number;
|
|
1003
|
+
/**
|
|
1004
|
+
* 是否已读
|
|
1005
|
+
*/
|
|
1006
|
+
hasRead: boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* 通知创建时间
|
|
1009
|
+
*/
|
|
1010
|
+
createTime: string;
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* 系统通知数据
|
|
1014
|
+
*/
|
|
1015
|
+
export interface NoticeSystem {
|
|
1016
|
+
/**
|
|
1017
|
+
* 消息的 oId
|
|
1018
|
+
*/
|
|
1019
|
+
oId: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* 用户 Id
|
|
1022
|
+
*/
|
|
1023
|
+
userId: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* 数据 Id
|
|
1026
|
+
*/
|
|
1027
|
+
dataId: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* 数据类型
|
|
1030
|
+
*/
|
|
1031
|
+
dataType: DataType;
|
|
1032
|
+
/**
|
|
1033
|
+
* 消息描述
|
|
1034
|
+
*/
|
|
1035
|
+
description: string;
|
|
1036
|
+
/**
|
|
1037
|
+
* 是否已读
|
|
1038
|
+
*/
|
|
1039
|
+
hasRead: boolean;
|
|
1040
|
+
/**
|
|
1041
|
+
* 创建日期
|
|
1042
|
+
*/
|
|
1043
|
+
createTime: string;
|
|
1044
|
+
}
|
|
1045
|
+
export interface BreezemoonContent {
|
|
1046
|
+
/**
|
|
1047
|
+
* 发布者用户名
|
|
1048
|
+
*/
|
|
1049
|
+
breezemoonAuthorName: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* 最后更新时间
|
|
1052
|
+
*/
|
|
1053
|
+
breezemoonUpdated: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* 清风明月ID
|
|
1056
|
+
*/
|
|
1057
|
+
oId: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* 创建时间
|
|
1060
|
+
*/
|
|
1061
|
+
breezemoonCreated: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* 发布者头像URL
|
|
1064
|
+
*/
|
|
1065
|
+
breezemoonAuthorThumbnailURL48: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* 发布时间
|
|
1068
|
+
*/
|
|
1069
|
+
timeAgo: string;
|
|
1070
|
+
/**
|
|
1071
|
+
* 正文
|
|
1072
|
+
*/
|
|
1073
|
+
breezemoonContent: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* 创建时间
|
|
1076
|
+
*/
|
|
1077
|
+
breezemoonCreateTime: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* 发布城市(可能为空,请注意做判断)
|
|
1080
|
+
*/
|
|
1081
|
+
breezemoonCity: string;
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* 举报数据类型
|
|
1085
|
+
*/
|
|
1086
|
+
export declare enum ReportDataType {
|
|
1087
|
+
/**
|
|
1088
|
+
* 文章
|
|
1089
|
+
*/
|
|
1090
|
+
article = 0,
|
|
1091
|
+
/**
|
|
1092
|
+
* 评论
|
|
1093
|
+
*/
|
|
1094
|
+
comment = 1,
|
|
1095
|
+
/**
|
|
1096
|
+
* 用户
|
|
1097
|
+
*/
|
|
1098
|
+
user = 2,
|
|
1099
|
+
/**
|
|
1100
|
+
* 聊天消息
|
|
1101
|
+
*/
|
|
1102
|
+
chatroom = 3
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* 举报类型
|
|
1106
|
+
*/
|
|
1107
|
+
export declare enum ReportType {
|
|
1108
|
+
/**
|
|
1109
|
+
* 垃圾广告
|
|
1110
|
+
*/
|
|
1111
|
+
advertise = 0,
|
|
1112
|
+
/**
|
|
1113
|
+
* 色情
|
|
1114
|
+
*/
|
|
1115
|
+
porn = 1,
|
|
1116
|
+
/**
|
|
1117
|
+
* 违规
|
|
1118
|
+
*/
|
|
1119
|
+
violate = 2,
|
|
1120
|
+
/**
|
|
1121
|
+
* 侵权
|
|
1122
|
+
*/
|
|
1123
|
+
infringement = 3,
|
|
1124
|
+
/**
|
|
1125
|
+
* 人身攻击
|
|
1126
|
+
*/
|
|
1127
|
+
attacks = 4,
|
|
1128
|
+
/**
|
|
1129
|
+
* 冒充他人账号
|
|
1130
|
+
*/
|
|
1131
|
+
impersonate = 5,
|
|
1132
|
+
/**
|
|
1133
|
+
* 垃圾广告账号
|
|
1134
|
+
*/
|
|
1135
|
+
advertisingAccount = 6,
|
|
1136
|
+
/**
|
|
1137
|
+
* 违规泄露个人信息
|
|
1138
|
+
*/
|
|
1139
|
+
leakPrivacy = 7,
|
|
1140
|
+
/**
|
|
1141
|
+
* 其它
|
|
1142
|
+
*/
|
|
1143
|
+
other = 8
|
|
1144
|
+
}
|
|
1145
|
+
/**
|
|
1146
|
+
* 举报接口数据
|
|
1147
|
+
*/
|
|
1148
|
+
export interface Report {
|
|
1149
|
+
/**
|
|
1150
|
+
* API Key,登录取得
|
|
1151
|
+
*/
|
|
1152
|
+
apiKey: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* 举报对象的 oId
|
|
1155
|
+
*/
|
|
1156
|
+
reportDataId: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* 举报数据的类型
|
|
1159
|
+
*/
|
|
1160
|
+
reportDataType: ReportDataType;
|
|
1161
|
+
/**
|
|
1162
|
+
* 举报的类型
|
|
1163
|
+
*/
|
|
1164
|
+
reportType: ReportType;
|
|
1165
|
+
/**
|
|
1166
|
+
* 举报的理由
|
|
1167
|
+
*/
|
|
1168
|
+
reportMemo: string;
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* 帖子类型
|
|
1172
|
+
*/
|
|
1173
|
+
export declare enum ArticleType {
|
|
1174
|
+
Normal = 0,
|
|
1175
|
+
Private = 1,
|
|
1176
|
+
Broadcast = 2,
|
|
1177
|
+
Thought = 3,
|
|
1178
|
+
Question = 5
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* 发帖信息
|
|
1182
|
+
*/
|
|
1183
|
+
export interface ArticlePost {
|
|
1184
|
+
/**
|
|
1185
|
+
* 帖子标题
|
|
1186
|
+
*/
|
|
1187
|
+
articleTitle: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* 帖子内容
|
|
1190
|
+
*/
|
|
1191
|
+
articleContent: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* 帖子标签
|
|
1194
|
+
*/
|
|
1195
|
+
articleTags: string;
|
|
1196
|
+
/**
|
|
1197
|
+
* 是否允许评论
|
|
1198
|
+
*/
|
|
1199
|
+
articleCommentable: boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* 是否帖子关注者
|
|
1202
|
+
*/
|
|
1203
|
+
articleNotifyFollowers: boolean;
|
|
1204
|
+
/**
|
|
1205
|
+
* 帖子类型
|
|
1206
|
+
*/
|
|
1207
|
+
articleType: ArticleType;
|
|
1208
|
+
/**
|
|
1209
|
+
* 是否在列表展示
|
|
1210
|
+
*/
|
|
1211
|
+
articleShowInList: 0 | 1;
|
|
1212
|
+
/**
|
|
1213
|
+
* 打赏内容
|
|
1214
|
+
*/
|
|
1215
|
+
articleRewardContent?: string;
|
|
1216
|
+
/**
|
|
1217
|
+
* 打赏积分
|
|
1218
|
+
*/
|
|
1219
|
+
articleRewardPoint?: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* 是否匿名
|
|
1222
|
+
*/
|
|
1223
|
+
articleAnonymous?: boolean;
|
|
1224
|
+
/**
|
|
1225
|
+
* 提问悬赏积分
|
|
1226
|
+
*/
|
|
1227
|
+
articleQnAOfferPoint?: number;
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* 文章标签
|
|
1231
|
+
*/
|
|
1232
|
+
export interface ArticleTag {
|
|
1233
|
+
/**
|
|
1234
|
+
* 标签 id
|
|
1235
|
+
*/
|
|
1236
|
+
oId: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* 标签名
|
|
1239
|
+
*/
|
|
1240
|
+
tagTitle: string;
|
|
1241
|
+
/**
|
|
1242
|
+
* 标签描述
|
|
1243
|
+
*/
|
|
1244
|
+
tagDescription: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* icon 地址
|
|
1247
|
+
*/
|
|
1248
|
+
tagIconPath: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* 标签地址
|
|
1251
|
+
*/
|
|
1252
|
+
tagURI: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* 标签自定义 CSS
|
|
1255
|
+
*/
|
|
1256
|
+
tagCSS: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* 反对数
|
|
1259
|
+
*/
|
|
1260
|
+
tagBadCnt: number;
|
|
1261
|
+
/**
|
|
1262
|
+
* 标签回帖计数
|
|
1263
|
+
*/
|
|
1264
|
+
tagCommentCount: number;
|
|
1265
|
+
/**
|
|
1266
|
+
* 关注数
|
|
1267
|
+
*/
|
|
1268
|
+
tagFollowerCount: number;
|
|
1269
|
+
/**
|
|
1270
|
+
* 点赞数
|
|
1271
|
+
*/
|
|
1272
|
+
tagGoodCnt: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* 引用计数
|
|
1275
|
+
*/
|
|
1276
|
+
tagReferenceCount: number;
|
|
1277
|
+
/**
|
|
1278
|
+
* 标签相关链接计数
|
|
1279
|
+
*/
|
|
1280
|
+
tagLinkCount: number;
|
|
1281
|
+
/**
|
|
1282
|
+
* 标签 SEO 描述
|
|
1283
|
+
*/
|
|
1284
|
+
tagSeoDesc: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* 标签关键字
|
|
1287
|
+
*/
|
|
1288
|
+
tagSeoKeywords: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* 标签 SEO 标题
|
|
1291
|
+
*/
|
|
1292
|
+
tagSeoTitle: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* 标签广告内容
|
|
1295
|
+
*/
|
|
1296
|
+
tagAd: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* 是否展示广告
|
|
1299
|
+
*/
|
|
1300
|
+
tagShowSideAd: 0 | 1;
|
|
1301
|
+
/**
|
|
1302
|
+
* 标签状态
|
|
1303
|
+
*/
|
|
1304
|
+
tagStatus: 0 | 1;
|
|
1305
|
+
/**
|
|
1306
|
+
* 标签随机数
|
|
1307
|
+
*/
|
|
1308
|
+
tagRandomDouble: number;
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* 公开状态
|
|
1312
|
+
*/
|
|
1313
|
+
export declare enum PublicStatus {
|
|
1314
|
+
Public = 0,
|
|
1315
|
+
Private = 1
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* 是否状态
|
|
1319
|
+
*/
|
|
1320
|
+
export declare enum YesNoStatus {
|
|
1321
|
+
Yes = 0,
|
|
1322
|
+
No = 1
|
|
1323
|
+
}
|
|
1324
|
+
/**
|
|
1325
|
+
* 文章状态
|
|
1326
|
+
*/
|
|
1327
|
+
export declare enum ArticleStatus {
|
|
1328
|
+
/**
|
|
1329
|
+
* 正常
|
|
1330
|
+
*/
|
|
1331
|
+
Normal = 0,
|
|
1332
|
+
/**
|
|
1333
|
+
* 封禁
|
|
1334
|
+
*/
|
|
1335
|
+
Ban = 1,
|
|
1336
|
+
/**
|
|
1337
|
+
* 锁定
|
|
1338
|
+
*/
|
|
1339
|
+
Lock = 2
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* 评论者信息
|
|
1343
|
+
*/
|
|
1344
|
+
export type CommentAuthor = ArticleAuthor;
|
|
1345
|
+
/**
|
|
1346
|
+
* 文章作者信息
|
|
1347
|
+
*/
|
|
1348
|
+
export interface ArticleAuthor {
|
|
1349
|
+
/**
|
|
1350
|
+
* 用户是否在线
|
|
1351
|
+
*/
|
|
1352
|
+
userOnlineFlag: boolean;
|
|
1353
|
+
/**
|
|
1354
|
+
* 用户在线时长
|
|
1355
|
+
*/
|
|
1356
|
+
onlineMinute: number;
|
|
1357
|
+
/**
|
|
1358
|
+
* 是否公开积分列表
|
|
1359
|
+
*/
|
|
1360
|
+
userPointStatus: PublicStatus;
|
|
1361
|
+
/**
|
|
1362
|
+
* 是否公开关注者列表
|
|
1363
|
+
*/
|
|
1364
|
+
userFollowerStatus: PublicStatus;
|
|
1365
|
+
/**
|
|
1366
|
+
* 用户完成新手指引步数
|
|
1367
|
+
*/
|
|
1368
|
+
userGuideStep: number;
|
|
1369
|
+
/**
|
|
1370
|
+
* 是否公开在线状态
|
|
1371
|
+
*/
|
|
1372
|
+
userOnlineStatus: PublicStatus;
|
|
1373
|
+
/**
|
|
1374
|
+
* 上次登录日期
|
|
1375
|
+
*/
|
|
1376
|
+
userCurrentCheckinStreakStart: number;
|
|
1377
|
+
/**
|
|
1378
|
+
* 是否聊天室图片自动模糊
|
|
1379
|
+
*/
|
|
1380
|
+
chatRoomPictureStatus: boolean;
|
|
1381
|
+
/**
|
|
1382
|
+
* 用户标签
|
|
1383
|
+
*/
|
|
1384
|
+
userTags: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* 是否公开回帖列表
|
|
1387
|
+
*/
|
|
1388
|
+
userCommentStatus: PublicStatus;
|
|
1389
|
+
/**
|
|
1390
|
+
* 用户时区
|
|
1391
|
+
*/
|
|
1392
|
+
userTimezone: string;
|
|
1393
|
+
/**
|
|
1394
|
+
* 用户个人主页
|
|
1395
|
+
*/
|
|
1396
|
+
userURL: string;
|
|
1397
|
+
/**
|
|
1398
|
+
* 是否启用站外链接跳转页面
|
|
1399
|
+
*/
|
|
1400
|
+
userForwardPageStatus: boolean;
|
|
1401
|
+
/**
|
|
1402
|
+
* 是否公开 UA 信息
|
|
1403
|
+
*/
|
|
1404
|
+
userUAStatus: PublicStatus;
|
|
1405
|
+
/**
|
|
1406
|
+
* 自定义首页跳转地址
|
|
1407
|
+
*/
|
|
1408
|
+
userIndexRedirectURL: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* 最近发帖时间
|
|
1411
|
+
*/
|
|
1412
|
+
userLatestArticleTime: number;
|
|
1413
|
+
/**
|
|
1414
|
+
* 标签计数
|
|
1415
|
+
*/
|
|
1416
|
+
userTagCount: number;
|
|
1417
|
+
/**
|
|
1418
|
+
* 昵称
|
|
1419
|
+
*/
|
|
1420
|
+
userNickname: string;
|
|
1421
|
+
/**
|
|
1422
|
+
* 回帖浏览模式
|
|
1423
|
+
*/
|
|
1424
|
+
userListViewMode: 0 | 1;
|
|
1425
|
+
/**
|
|
1426
|
+
* 最长连续签到
|
|
1427
|
+
*/
|
|
1428
|
+
userLongestCheckinStreak: number;
|
|
1429
|
+
/**
|
|
1430
|
+
* 用户头像类型
|
|
1431
|
+
*/
|
|
1432
|
+
userAvatarType: number;
|
|
1433
|
+
/**
|
|
1434
|
+
* 用户确认邮件发送时间
|
|
1435
|
+
*/
|
|
1436
|
+
userSubMailSendTime: number;
|
|
1437
|
+
/**
|
|
1438
|
+
* 用户最后更新时间
|
|
1439
|
+
*/
|
|
1440
|
+
userUpdateTime: number;
|
|
1441
|
+
/**
|
|
1442
|
+
* userSubMailStatus
|
|
1443
|
+
*/
|
|
1444
|
+
userSubMailStatus: YesNoStatus;
|
|
1445
|
+
/**
|
|
1446
|
+
* 是否加入积分排行
|
|
1447
|
+
*/
|
|
1448
|
+
userJoinPointRank: YesNoStatus;
|
|
1449
|
+
/**
|
|
1450
|
+
* 用户最后登录时间
|
|
1451
|
+
*/
|
|
1452
|
+
userLatestLoginTime: number;
|
|
1453
|
+
/**
|
|
1454
|
+
* 应用角色
|
|
1455
|
+
*/
|
|
1456
|
+
userAppRole: number;
|
|
1457
|
+
/**
|
|
1458
|
+
* 头像查看模式
|
|
1459
|
+
*/
|
|
1460
|
+
userAvatarViewMode: number;
|
|
1461
|
+
/**
|
|
1462
|
+
* 用户状态
|
|
1463
|
+
*/
|
|
1464
|
+
userStatus: number;
|
|
1465
|
+
/**
|
|
1466
|
+
* 用户上次最长连续签到日期
|
|
1467
|
+
*/
|
|
1468
|
+
userLongestCheckinStreakEnd: number;
|
|
1469
|
+
/**
|
|
1470
|
+
* 是否公开关注帖子列表
|
|
1471
|
+
*/
|
|
1472
|
+
userWatchingArticleStatus: PublicStatus;
|
|
1473
|
+
/**
|
|
1474
|
+
* 上次回帖时间
|
|
1475
|
+
*/
|
|
1476
|
+
userLatestCmtTime: number;
|
|
1477
|
+
/**
|
|
1478
|
+
* 用户省份
|
|
1479
|
+
*/
|
|
1480
|
+
userProvince: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* 用户当前连续签到计数
|
|
1483
|
+
*/
|
|
1484
|
+
userCurrentCheckinStreak: number;
|
|
1485
|
+
/**
|
|
1486
|
+
* 用户编号
|
|
1487
|
+
*/
|
|
1488
|
+
userNo: number;
|
|
1489
|
+
/**
|
|
1490
|
+
* 用户头像
|
|
1491
|
+
*/
|
|
1492
|
+
userAvatarURL: string;
|
|
1493
|
+
/**
|
|
1494
|
+
* 是否公开关注标签列表
|
|
1495
|
+
*/
|
|
1496
|
+
userFollowingTagStatus: PublicStatus;
|
|
1497
|
+
/**
|
|
1498
|
+
* 用户语言
|
|
1499
|
+
*/
|
|
1500
|
+
userLanguage: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* 是否加入消费排行
|
|
1503
|
+
*/
|
|
1504
|
+
userJoinUsedPointRank: YesNoStatus;
|
|
1505
|
+
/**
|
|
1506
|
+
* 上次签到日期
|
|
1507
|
+
*/
|
|
1508
|
+
userCurrentCheckinStreakEnd: number;
|
|
1509
|
+
/**
|
|
1510
|
+
* 是否公开收藏帖子列表
|
|
1511
|
+
*/
|
|
1512
|
+
userFollowingArticleStatus: PublicStatus;
|
|
1513
|
+
/**
|
|
1514
|
+
* 是否启用键盘快捷键
|
|
1515
|
+
*/
|
|
1516
|
+
userKeyboardShortcutsStatus: YesNoStatus;
|
|
1517
|
+
/**
|
|
1518
|
+
* 是否回帖后自动关注帖子
|
|
1519
|
+
*/
|
|
1520
|
+
userReplyWatchArticleStatus: YesNoStatus;
|
|
1521
|
+
/**
|
|
1522
|
+
* 回帖浏览模式
|
|
1523
|
+
*/
|
|
1524
|
+
userCommentViewMode: number;
|
|
1525
|
+
/**
|
|
1526
|
+
* 是否公开清风明月列表
|
|
1527
|
+
*/
|
|
1528
|
+
userBreezemoonStatus: PublicStatus;
|
|
1529
|
+
/**
|
|
1530
|
+
* 用户上次签到时间
|
|
1531
|
+
*/
|
|
1532
|
+
userCheckinTime: number;
|
|
1533
|
+
/**
|
|
1534
|
+
* 用户消费积分
|
|
1535
|
+
*/
|
|
1536
|
+
userUsedPoint: number;
|
|
1537
|
+
/**
|
|
1538
|
+
* 是否公开帖子列表
|
|
1539
|
+
*/
|
|
1540
|
+
userArticleStatus: PublicStatus;
|
|
1541
|
+
/**
|
|
1542
|
+
* 用户积分
|
|
1543
|
+
*/
|
|
1544
|
+
userPoint: number;
|
|
1545
|
+
/**
|
|
1546
|
+
* 用户回帖数量
|
|
1547
|
+
*/
|
|
1548
|
+
userCommentCount: number;
|
|
1549
|
+
/**
|
|
1550
|
+
* 用户个性签名
|
|
1551
|
+
*/
|
|
1552
|
+
userIntro: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* 移动端主题
|
|
1555
|
+
*/
|
|
1556
|
+
userMobileSkin: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* 分页每页条目
|
|
1559
|
+
*/
|
|
1560
|
+
userListPageSize: number;
|
|
1561
|
+
/**
|
|
1562
|
+
* 文章 Id
|
|
1563
|
+
*/
|
|
1564
|
+
oId: string;
|
|
1565
|
+
/**
|
|
1566
|
+
* 用户名
|
|
1567
|
+
*/
|
|
1568
|
+
userName: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* 是否公开 IP 地理信息
|
|
1571
|
+
*/
|
|
1572
|
+
userGeoStatus: PublicStatus;
|
|
1573
|
+
/**
|
|
1574
|
+
* 最长连续签到起始日
|
|
1575
|
+
*/
|
|
1576
|
+
userLongestCheckinStreakStart: number;
|
|
1577
|
+
/**
|
|
1578
|
+
* 用户主题
|
|
1579
|
+
*/
|
|
1580
|
+
userSkin: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* 是否启用 Web 通知
|
|
1583
|
+
*/
|
|
1584
|
+
userNotifyStatus: YesNoStatus;
|
|
1585
|
+
/**
|
|
1586
|
+
* 公开关注用户列表
|
|
1587
|
+
*/
|
|
1588
|
+
userFollowingUserStatus: PublicStatus;
|
|
1589
|
+
/**
|
|
1590
|
+
* 文章数
|
|
1591
|
+
*/
|
|
1592
|
+
userArticleCount: number;
|
|
1593
|
+
/**
|
|
1594
|
+
* 用户角色
|
|
1595
|
+
*/
|
|
1596
|
+
userRole: string;
|
|
1597
|
+
/**
|
|
1598
|
+
* 徽章
|
|
1599
|
+
*/
|
|
1600
|
+
sysMetal?: MetalList;
|
|
1601
|
+
}
|
|
1602
|
+
export interface ArticleDetail {
|
|
1603
|
+
/**
|
|
1604
|
+
* 是否在列表展示
|
|
1605
|
+
*/
|
|
1606
|
+
articleShowInList: boolean;
|
|
1607
|
+
/**
|
|
1608
|
+
* 文章创建时间
|
|
1609
|
+
*/
|
|
1610
|
+
articleCreateTime: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* 发布者Id
|
|
1613
|
+
*/
|
|
1614
|
+
articleAuthorId: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* 反对数
|
|
1617
|
+
*/
|
|
1618
|
+
articleBadCnt: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* 文章最后修改时间
|
|
1621
|
+
*/
|
|
1622
|
+
articleLatestCmtTime: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* 赞同数
|
|
1625
|
+
*/
|
|
1626
|
+
articleGoodCnt: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* 悬赏积分
|
|
1629
|
+
*/
|
|
1630
|
+
articleQnAOfferPoint: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* 作者头像缩略图
|
|
1633
|
+
*/
|
|
1634
|
+
articleThumbnailURL: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* 置顶序号
|
|
1637
|
+
*/
|
|
1638
|
+
articleStickRemains: number;
|
|
1639
|
+
/**
|
|
1640
|
+
* 发布时间简写
|
|
1641
|
+
*/
|
|
1642
|
+
timeAgo: string;
|
|
1643
|
+
/**
|
|
1644
|
+
* 文章更新时间
|
|
1645
|
+
*/
|
|
1646
|
+
articleUpdateTimeStr: string;
|
|
1647
|
+
/**
|
|
1648
|
+
* 作者用户名
|
|
1649
|
+
*/
|
|
1650
|
+
articleAuthorName: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* 文章类型
|
|
1653
|
+
*/
|
|
1654
|
+
articleType: ArticleType;
|
|
1655
|
+
/**
|
|
1656
|
+
* 是否悬赏
|
|
1657
|
+
*/
|
|
1658
|
+
offered: boolean;
|
|
1659
|
+
/**
|
|
1660
|
+
* 文章创建时间字符串
|
|
1661
|
+
*/
|
|
1662
|
+
articleCreateTimeStr: string;
|
|
1663
|
+
/**
|
|
1664
|
+
* 文章浏览数
|
|
1665
|
+
*/
|
|
1666
|
+
articleViewCount: number;
|
|
1667
|
+
/**
|
|
1668
|
+
* 作者头像缩略图
|
|
1669
|
+
*/
|
|
1670
|
+
articleAuthorThumbnailURL20: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* 关注数
|
|
1673
|
+
*/
|
|
1674
|
+
articleWatchCnt: number;
|
|
1675
|
+
/**
|
|
1676
|
+
* 文章预览内容
|
|
1677
|
+
*/
|
|
1678
|
+
articlePreviewContent: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* 文章标题
|
|
1681
|
+
*/
|
|
1682
|
+
articleTitleEmoj: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* 文章标题
|
|
1685
|
+
*/
|
|
1686
|
+
articleTitleEmojUnicode: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* 文章标题
|
|
1689
|
+
*/
|
|
1690
|
+
articleTitle: string;
|
|
1691
|
+
/**
|
|
1692
|
+
* 作者头像缩略图
|
|
1693
|
+
*/
|
|
1694
|
+
articleAuthorThumbnailURL48: string;
|
|
1695
|
+
/**
|
|
1696
|
+
* 文章评论数
|
|
1697
|
+
*/
|
|
1698
|
+
articleCommentCount: number;
|
|
1699
|
+
/**
|
|
1700
|
+
* 收藏数
|
|
1701
|
+
*/
|
|
1702
|
+
articleCollectCnt: number;
|
|
1703
|
+
/**
|
|
1704
|
+
* 文章最后评论者
|
|
1705
|
+
*/
|
|
1706
|
+
articleLatestCmterName: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* 文章标签
|
|
1709
|
+
*/
|
|
1710
|
+
articleTags: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* 文章 id
|
|
1713
|
+
*/
|
|
1714
|
+
oId: string;
|
|
1715
|
+
/**
|
|
1716
|
+
* 最后评论时间简写
|
|
1717
|
+
*/
|
|
1718
|
+
cmtTimeAgo: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* 是否置顶
|
|
1721
|
+
*/
|
|
1722
|
+
articleStick: number;
|
|
1723
|
+
/**
|
|
1724
|
+
* 文章标签信息
|
|
1725
|
+
*/
|
|
1726
|
+
articleTagObjs: Array<ArticleTag>;
|
|
1727
|
+
/**
|
|
1728
|
+
* 文章最后评论时间
|
|
1729
|
+
*/
|
|
1730
|
+
articleLatestCmtTimeStr: string;
|
|
1731
|
+
/**
|
|
1732
|
+
* 是否匿名
|
|
1733
|
+
*/
|
|
1734
|
+
articleAnonymous: boolean;
|
|
1735
|
+
/**
|
|
1736
|
+
* 文章感谢数
|
|
1737
|
+
*/
|
|
1738
|
+
articleThankCnt: number;
|
|
1739
|
+
/**
|
|
1740
|
+
* 文章更新时间
|
|
1741
|
+
*/
|
|
1742
|
+
articleUpdateTime: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* 文章状态
|
|
1745
|
+
*/
|
|
1746
|
+
articleStatus: ArticleStatus;
|
|
1747
|
+
/**
|
|
1748
|
+
* 文章点击数
|
|
1749
|
+
*/
|
|
1750
|
+
articleHeat: number;
|
|
1751
|
+
/**
|
|
1752
|
+
* 文章是否优选
|
|
1753
|
+
*/
|
|
1754
|
+
articlePerfect: boolean;
|
|
1755
|
+
/**
|
|
1756
|
+
* 作者头像缩略图
|
|
1757
|
+
*/
|
|
1758
|
+
articleAuthorThumbnailURL210: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* 文章固定链接
|
|
1761
|
+
*/
|
|
1762
|
+
articlePermalink: string;
|
|
1763
|
+
/**
|
|
1764
|
+
* 作者用户信息
|
|
1765
|
+
*/
|
|
1766
|
+
articleAuthor: ArticleAuthor;
|
|
1767
|
+
/**
|
|
1768
|
+
* 文章感谢数
|
|
1769
|
+
*/
|
|
1770
|
+
thankedCnt?: number;
|
|
1771
|
+
/**
|
|
1772
|
+
* 文章匿名浏览量
|
|
1773
|
+
*/
|
|
1774
|
+
articleAnonymousView?: number;
|
|
1775
|
+
/**
|
|
1776
|
+
* 文章浏览量简写
|
|
1777
|
+
*/
|
|
1778
|
+
articleViewCntDisplayFormat?: string;
|
|
1779
|
+
/**
|
|
1780
|
+
* 文章是否启用评论
|
|
1781
|
+
*/
|
|
1782
|
+
articleCommentable?: boolean;
|
|
1783
|
+
/**
|
|
1784
|
+
* 是否开启打赏
|
|
1785
|
+
*/
|
|
1786
|
+
rewarded?: boolean;
|
|
1787
|
+
/**
|
|
1788
|
+
* 打赏人数
|
|
1789
|
+
*/
|
|
1790
|
+
rewardedCnt?: number;
|
|
1791
|
+
/**
|
|
1792
|
+
* 文章打赏积分
|
|
1793
|
+
*/
|
|
1794
|
+
articleRewardPoint?: number;
|
|
1795
|
+
/**
|
|
1796
|
+
* 是否已关注
|
|
1797
|
+
*/
|
|
1798
|
+
isFollowing?: boolean;
|
|
1799
|
+
/**
|
|
1800
|
+
* 是否关注
|
|
1801
|
+
*/
|
|
1802
|
+
isWatching?: boolean;
|
|
1803
|
+
/**
|
|
1804
|
+
* 是否是我的文章
|
|
1805
|
+
*/
|
|
1806
|
+
isMyArticle?: boolean;
|
|
1807
|
+
/**
|
|
1808
|
+
* 是否感谢
|
|
1809
|
+
*/
|
|
1810
|
+
thanked?: boolean;
|
|
1811
|
+
/**
|
|
1812
|
+
* 编辑器类型
|
|
1813
|
+
*/
|
|
1814
|
+
articleEditorType?: number;
|
|
1815
|
+
/**
|
|
1816
|
+
* 文章音频地址
|
|
1817
|
+
*/
|
|
1818
|
+
articleAudioURL?: string;
|
|
1819
|
+
/**
|
|
1820
|
+
* 文章目录 HTML
|
|
1821
|
+
*/
|
|
1822
|
+
articleToC?: string;
|
|
1823
|
+
/**
|
|
1824
|
+
* 文章内容 HTML
|
|
1825
|
+
*/
|
|
1826
|
+
articleContent?: string;
|
|
1827
|
+
/**
|
|
1828
|
+
* 文章内容 Markdown
|
|
1829
|
+
*/
|
|
1830
|
+
articleOriginalContent?: string;
|
|
1831
|
+
/**
|
|
1832
|
+
* 文章缩略图
|
|
1833
|
+
*/
|
|
1834
|
+
articleImg1URL?: string;
|
|
1835
|
+
/**
|
|
1836
|
+
* 文章点赞数
|
|
1837
|
+
*/
|
|
1838
|
+
articleVote?: number;
|
|
1839
|
+
/**
|
|
1840
|
+
* 文章随机数
|
|
1841
|
+
*/
|
|
1842
|
+
articleRandomDouble?: number;
|
|
1843
|
+
/**
|
|
1844
|
+
* 作者签名
|
|
1845
|
+
*/
|
|
1846
|
+
articleAuthorIntro?: string;
|
|
1847
|
+
/**
|
|
1848
|
+
* 发布城市
|
|
1849
|
+
*/
|
|
1850
|
+
articleCity?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* 发布者 IP
|
|
1853
|
+
*/
|
|
1854
|
+
articleIP?: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* 作者首页地址
|
|
1857
|
+
*/
|
|
1858
|
+
articleAuthorURL?: string;
|
|
1859
|
+
/**
|
|
1860
|
+
* 推送 Email 推送顺序
|
|
1861
|
+
*/
|
|
1862
|
+
articlePushOrder?: number;
|
|
1863
|
+
/**
|
|
1864
|
+
* 打赏内容
|
|
1865
|
+
*/
|
|
1866
|
+
articleRewardContent?: string;
|
|
1867
|
+
/**
|
|
1868
|
+
* reddit分数
|
|
1869
|
+
*/
|
|
1870
|
+
redditScore?: string;
|
|
1871
|
+
/**
|
|
1872
|
+
* 评论分页信息
|
|
1873
|
+
*/
|
|
1874
|
+
pagination?: {
|
|
1875
|
+
/**
|
|
1876
|
+
* 评论分页数
|
|
1877
|
+
*/
|
|
1878
|
+
paginationPageCount: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* 建议分页页码
|
|
1881
|
+
*/
|
|
1882
|
+
paginationPageNums: Array<number>;
|
|
1883
|
+
};
|
|
1884
|
+
/**
|
|
1885
|
+
* 评论是否可见
|
|
1886
|
+
*/
|
|
1887
|
+
discussionViewable: boolean;
|
|
1888
|
+
/**
|
|
1889
|
+
* 文章修改次数
|
|
1890
|
+
*/
|
|
1891
|
+
articleRevisionCount: number;
|
|
1892
|
+
/**
|
|
1893
|
+
* 文章的评论
|
|
1894
|
+
*/
|
|
1895
|
+
articleComments?: Array<ArticleComment>;
|
|
1896
|
+
/**
|
|
1897
|
+
* 文章最佳评论
|
|
1898
|
+
*/
|
|
1899
|
+
articleNiceComments?: Array<ArticleComment>;
|
|
1900
|
+
}
|
|
1901
|
+
export interface ArticleComment {
|
|
1902
|
+
commentNice: boolean;
|
|
1903
|
+
commentCreateTimeStr: string;
|
|
1904
|
+
commentAuthorId: string;
|
|
1905
|
+
commentScore: number;
|
|
1906
|
+
commentCreateTime: string;
|
|
1907
|
+
commentAuthorURL: string;
|
|
1908
|
+
commentVote: number;
|
|
1909
|
+
commentRevisionCount: number;
|
|
1910
|
+
timeAgo: string;
|
|
1911
|
+
commentOriginalCommentId: string;
|
|
1912
|
+
sysMetal: MetalList;
|
|
1913
|
+
commentGoodCnt: number;
|
|
1914
|
+
commentVisible: YesNoStatus;
|
|
1915
|
+
commentOnArticleId: string;
|
|
1916
|
+
rewardedCnt: number;
|
|
1917
|
+
commentSharpURL: string;
|
|
1918
|
+
commentAnonymous: boolean;
|
|
1919
|
+
commentReplyCnt: number;
|
|
1920
|
+
oId: string;
|
|
1921
|
+
commentContent: string;
|
|
1922
|
+
commentStatus: number;
|
|
1923
|
+
commenter: CommentAuthor;
|
|
1924
|
+
commentAuthorName: string;
|
|
1925
|
+
commentThankCnt: number;
|
|
1926
|
+
commentBadCnt: number;
|
|
1927
|
+
rewarded: boolean;
|
|
1928
|
+
commentAuthorThumbnailURL: string;
|
|
1929
|
+
commentAudioURL: string;
|
|
1930
|
+
commentQnAOffered: number;
|
|
1931
|
+
}
|
|
1932
|
+
export interface ArticleList {
|
|
1933
|
+
articles: Array<ArticleDetail>;
|
|
1934
|
+
pagination: {
|
|
1935
|
+
paginationPageCount: number;
|
|
1936
|
+
paginationPageNums: Array<number>;
|
|
1937
|
+
};
|
|
1938
|
+
tag?: ArticleTag;
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* 帖子列表查询类型
|
|
1942
|
+
*/
|
|
1943
|
+
export declare enum ArticleListType {
|
|
1944
|
+
/**
|
|
1945
|
+
* 最近
|
|
1946
|
+
*/
|
|
1947
|
+
Recent = "",
|
|
1948
|
+
/**
|
|
1949
|
+
* 热门
|
|
1950
|
+
*/
|
|
1951
|
+
Hot = "/hot",
|
|
1952
|
+
/**
|
|
1953
|
+
* 点赞
|
|
1954
|
+
*/
|
|
1955
|
+
Good = "/good",
|
|
1956
|
+
/**
|
|
1957
|
+
* 最近回复
|
|
1958
|
+
*/
|
|
1959
|
+
Reply = "/reply",
|
|
1960
|
+
/**
|
|
1961
|
+
* 优选,需包含标签
|
|
1962
|
+
*/
|
|
1963
|
+
Perfect = "/perfact"
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* 点赞类型
|
|
1967
|
+
*/
|
|
1968
|
+
export declare enum VoteStatus {
|
|
1969
|
+
/**
|
|
1970
|
+
* 点赞
|
|
1971
|
+
*/
|
|
1972
|
+
Voted = 0,
|
|
1973
|
+
/**
|
|
1974
|
+
* 取消点赞
|
|
1975
|
+
*/
|
|
1976
|
+
Unvote = -1
|
|
1977
|
+
}
|
|
1978
|
+
export interface CommentPost {
|
|
1979
|
+
/**
|
|
1980
|
+
* 文章 Id
|
|
1981
|
+
*/
|
|
1982
|
+
articleId: string;
|
|
1983
|
+
/**
|
|
1984
|
+
* 是否匿名评论
|
|
1985
|
+
*/
|
|
1986
|
+
commentAnonymous: boolean;
|
|
1987
|
+
/**
|
|
1988
|
+
* 评论是否楼主可见
|
|
1989
|
+
*/
|
|
1990
|
+
commentVisible: boolean;
|
|
1991
|
+
/**
|
|
1992
|
+
* 评论内容
|
|
1993
|
+
*/
|
|
1994
|
+
commentContent: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* 回复评论 Id
|
|
1997
|
+
*/
|
|
1998
|
+
commentOriginalCommentId?: string;
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* 私聊内容
|
|
2002
|
+
*/
|
|
2003
|
+
export interface ChatData {
|
|
2004
|
+
/**
|
|
2005
|
+
* 接收者 Id
|
|
2006
|
+
*/
|
|
2007
|
+
toId: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* 预览内容
|
|
2010
|
+
*/
|
|
2011
|
+
preview: string;
|
|
2012
|
+
/**
|
|
2013
|
+
* 消息用户 Session
|
|
2014
|
+
*/
|
|
2015
|
+
user_session: string;
|
|
2016
|
+
/**
|
|
2017
|
+
* 发送者头像
|
|
2018
|
+
*/
|
|
2019
|
+
senderAvatar: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* 消息 Markdown
|
|
2022
|
+
*/
|
|
2023
|
+
markdown: string;
|
|
2024
|
+
/**
|
|
2025
|
+
* 接收者头像
|
|
2026
|
+
*/
|
|
2027
|
+
receiverAvatar: string;
|
|
2028
|
+
/**
|
|
2029
|
+
* 消息 Id
|
|
2030
|
+
*/
|
|
2031
|
+
oId: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* 发送时间
|
|
2034
|
+
*/
|
|
2035
|
+
time: string;
|
|
2036
|
+
/**
|
|
2037
|
+
* 来源 Id
|
|
2038
|
+
*/
|
|
2039
|
+
fromId: string;
|
|
2040
|
+
/**
|
|
2041
|
+
* 发送者用户名
|
|
2042
|
+
*/
|
|
2043
|
+
senderUserName: string;
|
|
2044
|
+
/**
|
|
2045
|
+
* 消息内容 HTML
|
|
2046
|
+
*/
|
|
2047
|
+
content: string;
|
|
2048
|
+
/**
|
|
2049
|
+
* 接收者用户名
|
|
2050
|
+
*/
|
|
2051
|
+
receiverUserName: string;
|
|
2052
|
+
}
|
|
2053
|
+
/**
|
|
2054
|
+
* 禁言用户信息
|
|
2055
|
+
*/
|
|
2056
|
+
export interface MuteItem {
|
|
2057
|
+
/**
|
|
2058
|
+
* 解除禁言时间戳
|
|
2059
|
+
*/
|
|
2060
|
+
time: number;
|
|
2061
|
+
/**
|
|
2062
|
+
* 用户头像
|
|
2063
|
+
*/
|
|
2064
|
+
userAvatarURL: string;
|
|
2065
|
+
/**
|
|
2066
|
+
* 用户名
|
|
2067
|
+
*/
|
|
2068
|
+
userName: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* 用户昵称
|
|
2071
|
+
*/
|
|
2072
|
+
userNickname: string;
|
|
2073
|
+
}
|