Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LeetCodeRequestMap = make(map[RequestType]RequestConfig)
Functions ¶
func Register ¶
func Register(rt RequestType, c RequestConfig)
Types ¶
type RequestConfig ¶
type RequestType ¶
type RequestType int
const ( RequestTypeUserProfile RequestType = iota + 1 RequestTypeUserQuestionProgress RequestTypeUserContestRankingInfo )
type UserContestRankingInfo ¶
type UserProfile ¶
type UserProfile struct { UserSlug string `json:"userSlug"` // URL path RealName string `json:"realName"` // 显示的名字 UserAvatar string `json:"userAvatar"` // 头像 SiteRanking int `json:"siteRanking"` // 排名 TotalSubmissions int `json:"totalSubmissions"` // 共提交数 AcSubmissions int `json:"acSubmissions"` // 提交通过数 WaSubmissions int `json:"waSubmissions"` // 答案错误数【无用】 ReSubmissions int `json:"reSubmissions"` // 运行错误【无用】 OtherSubmissions int `json:"otherSubmissions"` // 其他错误【无用】 AcTotal int `json:"acTotal"` // 解决题目数量 QuestionTotal int `json:"questionTotal"` // 题目总数 }
UserProfile user info
type UserQuestionPrecess ¶
type UserQuestionPrecess struct { Overview UserQuestionProcessStat Easy UserQuestionProcessStat Medium UserQuestionProcessStat Hard UserQuestionProcessStat }
Click to show internal directories.
Click to hide internal directories.