fix: some api bug
This commit is contained in:
+11
-5
@@ -8,6 +8,13 @@ info (
|
||||
)
|
||||
|
||||
type (
|
||||
// 认证材料结构体(示例,实际根据需求定义)
|
||||
MaterialJson {
|
||||
IdCardFront string `json:"idCardFront"` // 身份证正面照片URL
|
||||
IdCardBack string `json:"idCardBack"` // 身份证反面照片URL
|
||||
GameScreenshots []*string `json:"gameScreenshots,optional"` // 游戏截图URL列表
|
||||
VoiceDemo *string `json:"voiceDemo,optional"` // 语音认证示例URL
|
||||
}
|
||||
// 认证记录展示对象
|
||||
// 对应数据库 user_verifications 表
|
||||
VerificationItem {
|
||||
@@ -23,8 +30,8 @@ type (
|
||||
}
|
||||
// 提交申请请求
|
||||
ApplyVerificationReq {
|
||||
Role string `json:"role"` // 申请什么角色
|
||||
Materials map[string]string `json:"materials"` // 证明材料键值对 {"idCardFront": "http...", "license": "http..."}
|
||||
Role string `json:"role"` // 申请什么角色
|
||||
Materials MaterialJson `json:"materials"` // 证明材料键值对 {"idCardFront": "http...", "license": "http..."}
|
||||
}
|
||||
// 获取我的申请记录响应
|
||||
GetMyVerificationsResp {
|
||||
@@ -235,9 +242,8 @@ service user-api {
|
||||
}
|
||||
|
||||
@server (
|
||||
group: verification_user
|
||||
prefix: /api/v1/users
|
||||
middleware: Logger // 必须登录
|
||||
group: verification_user
|
||||
prefix: /api/v1/users
|
||||
)
|
||||
service user-api {
|
||||
@doc "提交或修改角色认证申请 (支持幂等更新)"
|
||||
|
||||
Reference in New Issue
Block a user