新增查询全部用户api
This commit is contained in:
@@ -96,18 +96,29 @@ type PublicInfoResponse struct {
|
||||
TeamID int `json:"team_id"`
|
||||
}
|
||||
|
||||
// PublicAllInfoResponse 定义返回所有用户公开信息结构体 暂时不显示队伍名称
|
||||
type PublicAllInfoResponse struct {
|
||||
Id string `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Affiliation string `json:"affiliation"`
|
||||
Country string `json:"country"`
|
||||
Website string `json:"website"`
|
||||
TeamID string `json:"team_id"`
|
||||
Hidden string `json:"hidden"`
|
||||
}
|
||||
|
||||
// ChallengeResponse 定义获取题目的一个响应。
|
||||
type ChallengeResponse struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Score int `json:"score"`
|
||||
Description string `json:"description"` //题目描述
|
||||
Attachment []string `json:"attachment"` //题目附件
|
||||
Category string `json:"category"` //分类
|
||||
Tags string `json:"tags"` //标签
|
||||
Hints []string `json:"hints"` //提示
|
||||
SolverCount int `json:"solver_count"` //解决人数
|
||||
IsSolved bool `json:"is_solved"` // true:已解决,false:未解决
|
||||
Description string `json:"description"` //题目描述
|
||||
Attachment []string `json:"attachment"` //题目附件
|
||||
Category string `json:"category"` //分类
|
||||
Tags string `json:"tags"` //标签
|
||||
Hints []string `json:"hints"` //提示
|
||||
SolverCount int `json:"solver_count"` //解决人数
|
||||
IsSolved bool `json:"is_solved"` // true:已解决,false:未解决
|
||||
}
|
||||
|
||||
// ScoreRankResponse 定义获取当前用户分数和排名的一个响应。
|
||||
|
Reference in New Issue
Block a user