-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathleetcode.go
46 lines (41 loc) · 1.5 KB
/
leetcode.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
package main
type LeetCode struct {
UserName string `json:"user_name"`
NumSolved int `json:"num_solved"`
NumTotal int `json:"num_total"`
AcEasy int `json:"ac_easy"`
AcMedium int `json:"ac_medium"`
AcHard int `json:"ac_hard"`
StatStatusPairs []Problem `json:"stat_status_pairs"`
FrequencyHigh int `json:"frequency_high"`
FrequencyMid int `json:"frequency_mid"`
CategorySlug string `json:"category_slug"`
}
// 问题
type Problem struct {
Stat Stat `json:"stat"`
Status bool `json:"status"`
Difficulty Difficulty `json:"difficulty"`
PaidOnly bool `json:"paid_only"`
IsFavor bool `json:"is_favor"`
Frequency int `json:"frequency"`
Progress int `json:"progress"`
PathName string `json:"path_name"`
}
type Stat struct {
QuestionID int `json:"question_id"`
QuestionArticleLive bool `json:"question__article__live"`
QuestionArticleSlug string `json:"question__article__slug"`
QuestionTitle string `json:"question__title"`
QuestionTitleSlup string `json:"question__title_slug"`
QuestionHide bool `json:"question__hide"`
TotalAcs int `json:"total_acs"`
TotalSubmitted int `json:"total_submitted"`
FrontendQuestionID int `json:"frontend_question_id"`
IsNewQuestion bool `json:"is_new_question"`
}
type Difficulty struct {
Level int `json:"level"`
}
func GetAllleetcodeInstance() {
}