管理用户 路由
This commit is contained in:
@@ -108,6 +108,36 @@ type PublicAllInfoResponse struct {
|
||||
Hidden string `json:"hidden"`
|
||||
}
|
||||
|
||||
// AllInfoResponse 定义返回所有用户公开信息结构体
|
||||
type AllInfoResponse struct {
|
||||
Id string `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Email string `json:"email"`
|
||||
Affiliation string `json:"affiliation"`
|
||||
Country string `json:"country"`
|
||||
Website string `json:"website"`
|
||||
TeamID string `json:"team_id"`
|
||||
Hidden string `json:"hidden"`
|
||||
Banned string `json:"banned"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
// EditInfoRequest 定义修改用户信息的结构体
|
||||
type EditInfoRequest struct {
|
||||
Id string `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
Email string `json:"email"`
|
||||
Affiliation string `json:"affiliation"`
|
||||
Country string `json:"country"`
|
||||
Website string `json:"website"`
|
||||
TeamID int `json:"team_id"`
|
||||
Hidden string `json:"hidden"`
|
||||
Banned string `json:"banned"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
// ChallengeResponse 定义获取题目的一个响应。
|
||||
type ChallengeResponse struct {
|
||||
ID int `json:"id"`
|
||||
|
Reference in New Issue
Block a user