新增查询全部用户api

This commit is contained in:
jiayuqi7813
2022-06-27 20:00:50 +08:00
parent f213f1d0c3
commit 4b7ef7b4a7
4 changed files with 49 additions and 20 deletions

View File

@@ -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 定义获取当前用户分数和排名的一个响应。