Documentation ¶
Index ¶
- Variables
- func GetUserProfile(userName string) (*models.UserProfile, error)
- type AllNum
- type Data
- type DataFollow
- type Errors
- type FollowInfo
- type LeetCodeUserProfile
- type Locations
- type MatchedUser
- type MatchedUserProfile
- type Profile
- type Submission
- type SubmissionProgress
- type SubmitStats
- type UserProfileData
- type UserProfilePublicProfile
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNotExist = errors.New("That user does not exist.")
)
Functions ¶
func GetUserProfile ¶
func GetUserProfile(userName string) (*models.UserProfile, error)
GetUserProfile 部分数据不全
Types ¶
type Data ¶
type Data struct { Data json.RawMessage `json:"data"` Errors []Errors `json:"errors"` }
type DataFollow ¶ added in v0.3.6
type FollowInfo ¶ added in v0.3.6
type LeetCodeUserProfile ¶
type LeetCodeUserProfile struct {
UserProfilePublicProfile UserProfilePublicProfile `json:"userProfilePublicProfile"`
}
type MatchedUser ¶ added in v0.3.6
type MatchedUser struct { Profile MatchedUserProfile `json:"profile"` SubmitStats SubmitStats `json:"submitStats"` }
type MatchedUserProfile ¶ added in v0.3.6
type Submission ¶ added in v0.3.6
type SubmissionProgress ¶
type SubmissionProgress struct { TotalSubmissions int `json:"totalSubmissions"` WaSubmissions int `json:"waSubmissions"` AcSubmissions int `json:"acSubmissions"` ReSubmissions int `json:"reSubmissions"` OtherSubmissions int `json:"otherSubmissions"` AcTotal int `json:"acTotal"` QuestionTotal int `json:"questionTotal"` Typename string `json:"__typename"` }
type SubmitStats ¶ added in v0.3.6
type SubmitStats struct { AcSubmissionNum []Submission `json:"acSubmissionNum"` TotalSubmissionNum []Submission `json:"totalSubmissionNum"` }
type UserProfileData ¶ added in v0.3.6
type UserProfileData struct { MatchedUser MatchedUser `json:"matchedUser"` AllQuestionsCount []Submission `json:"allQuestionsCount"` }
type UserProfilePublicProfile ¶
type UserProfilePublicProfile struct { Username string `json:"username"` HaveFollowed interface{} `json:"haveFollowed"` SiteRanking int `json:"siteRanking"` Profile Profile `json:"profile"` SubmissionProgress SubmissionProgress `json:"submissionProgress"` Typename string `json:"__typename"` }
Click to show internal directories.
Click to hide internal directories.