-
Notifications
You must be signed in to change notification settings - Fork 44
/
do.go
504 lines (451 loc) · 7.72 KB
/
do.go
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
package biz
type UserAccount struct {
Phone string
Email string
Qq string
Wechat string
Gitee int32
Github int32
Password string
}
type UserProfile struct {
Uuid string
Username string
Avatar string
School string
Company string
Job string
Homepage string
Github string
Gitee string
Introduce string
Created string
Score int32
Agree int32
Collect int32
View int32
Follow int32
Followed int32
Article int32
Column int32
Subscribe int32
Talk int32
Collections int32
}
type UserSearch struct {
Uuid string
Username string
Introduce string
Agree int32
View int32
Collect int32
FollowNum int32
FollowedNum int32
}
type UserProfileUpdate struct {
UserProfile
Status int32
}
type Github struct {
Token string
Avatar string
Register bool
Uuid string
}
type Credentials struct {
TmpSecretID string
TmpSecretKey string
SessionToken string
StartTime int64
ExpiredTime int64
}
type UserImageReview struct {
Id int32
Uuid string
CreateAt string
JobId string
Url string
Label string
Result int32
Score int32
Category string
SubLabel string
}
type CreationImageReview struct {
Id int32
CreationId int32
Kind string
Uid string
CreateAt string
Uuid string
JobId string
Url string
Label string
Result int32
Category string
SubLabel string
Mode string
Score int32
}
type CreationContentReview struct {
Id int32
CreationId int32
Title string
Kind string
CreateAt string
Uuid string
JobId string
Label string
Result int32
Section string
Mode string
}
type Follow struct {
Follow string
Followed string
Username string
Introduce string
Agree int32
View int32
Collect int32
FollowNum int32
FollowedNum int32
Status int32
}
type TimeLIneFollows struct {
Uuid string
Username string
}
type Follows struct {
Uuid string
Follow int32
}
type PornInfo struct {
HitFlag int32
Count int32
}
type AdsInfo struct {
HitFlag int32
Count int32
}
type IllegalInfo struct {
HitFlag int32
Count int32
}
type AbuseInfo struct {
HitFlag int32
Count int32
}
type Section struct {
Label string
Result int32
PornInfo *SectionPornInfo
AdsInfo *SectionAdsInfo
IllegalInfo *SectionIllegalInfo
AbuseInfo *SectionAbuseInfo
}
type SectionPornInfo struct {
HitFlag int32
Score int32
Keywords string
}
type SectionAdsInfo struct {
HitFlag int32
Score int32
Keywords string
}
type SectionIllegalInfo struct {
HitFlag int32
Score int32
Keywords string
}
type SectionAbuseInfo struct {
HitFlag int32
Score int32
Keywords string
}
type TextReview struct {
Code string
Message string
JobId string
DataId string
State string
CreationTime string
Object string
Label string
Result int32
PornInfo *PornInfo
AdsInfo *AdsInfo
IllegalInfo *IllegalInfo
AbuseInfo *AbuseInfo
BucketId string
Region string
CosHeaders map[string]string
Section []*Section
}
type LeaderBoard struct {
Id int32
Uuid string
Mode string
}
type TimeLine struct {
Id int32
Uuid string
CreationId int32
Mode int32
Agree int32
View int32
Collect int32
Comment int32
}
type Article struct {
Id int32
Agree int32
View int32
Collect int32
Comment int32
Total int32
Title string
Tags string
Uuid string
Text string
Cover string
Update string
}
type ArticleStatistic struct {
Id int32
Uuid string
Agree int32
View int32
Collect int32
Comment int32
}
type ArticleStatisticJudge struct {
Agree bool
Collect bool
}
type ArticleDraft struct {
Id int32
Status int32
}
type Talk struct {
Id int32
Agree int32
View int32
Collect int32
Comment int32
Total int32
Title string
Tags string
Uuid string
Text string
Cover string
Update string
}
type TalkDraft struct {
Id int32
Status int32
}
type TalkStatistic struct {
Id int32
Uuid string
Agree int32
View int32
Collect int32
Comment int32
}
type TalkStatisticJudge struct {
Agree bool
Collect bool
}
type Collections struct {
Id int32
Uuid string
Auth int32
Article int32
Column int32
Talk int32
}
type CollectionsDraft struct {
Id int32
Status int32
}
type Column struct {
Id int32
Agree int32
View int32
Collect int32
Total int32
Name string
Tags string
Uuid string
Introduce string
Cover string
Update string
}
type ColumnDraft struct {
Id int32
Status int32
}
type ColumnStatistic struct {
Id int32
Uuid string
Agree int32
View int32
Collect int32
}
type ColumnStatisticJudge struct {
Agree bool
Collect bool
}
type CreationUser struct {
Article int32
Column int32
Talk int32
Collect int32
Subscribe int32
Collections int32
}
type Achievement struct {
Uuid string
Score int32
Agree int32
Collect int32
View int32
Follow int32
Followed int32
}
type Active struct {
Agree int32
}
type Medal struct {
Creation1 int32
Creation2 int32
Creation3 int32
Creation4 int32
Creation5 int32
Creation6 int32
Creation7 int32
Agree1 int32
Agree2 int32
Agree3 int32
Agree4 int32
Agree5 int32
Agree6 int32
View1 int32
View2 int32
View3 int32
Comment1 int32
Comment2 int32
Comment3 int32
Collect1 int32
Collect2 int32
Collect3 int32
}
type MedalProgress struct {
Article int32
Talk int32
Agree int32
ActiveAgree int32
View int32
Comment int32
Collect int32
}
type Subscribe struct {
ColumnId int32
AuthorId string
Uuid string
Status int32
}
type News struct {
Id string
Update string
Title string
Author string
Text string
Tags string
Cover string
Url string
Content string
}
type CommentDraft struct {
Id int32
Status int32
}
type Comment struct {
Id int32
Uuid string
UserName string
CreationAuthor string
CreationId int32
CreationType int32
Agree int32
Comment int32
}
type SubComment struct {
Id int32
CreationId int32
CreationType int32
RootId int32
ParentId int32
CreationAuthor string
RootUser string
Uuid string
Reply string
UserName string
ReplyName string
RootName string
Agree int32
}
type CommentUser struct {
Comment int32
ArticleReply int32
ArticleReplySub int32
TalkReply int32
TalkReplySub int32
ArticleReplied int32
ArticleRepliedSub int32
TalkReplied int32
TalkRepliedSub int32
}
type CommentStatistic struct {
Id int32
Agree int32
Comment int32
}
type CommentContentReview struct {
Id int32
CommentId int32
Comment string
Kind string
CreateAt string
Uuid string
JobId string
Label string
Result int32
Section string
Mode string
}
type MailBox struct {
Time int32
}
type Notification struct {
Timeline map[string]int32
Comment int32
SubComment int32
SystemNotification int32
}
type SystemNotification struct {
Id int32
ContentId int32
CreatedAt string
NotificationType string
Title string
Uid string
Uuid string
Label string
Result int32
Section string
Text string
Comment string
}