fix: int64 ID 字段序列化为 JSON string
This commit is contained in:
+3
-2
@@ -18,8 +18,8 @@ type (
|
||||
// 认证记录展示对象
|
||||
// 对应数据库 user_verifications 表
|
||||
VerificationItem {
|
||||
Id int64 `json:"id"` // 认证记录ID (主键,用于管理员操作)
|
||||
UserId int64 `json:"userId"` // 申请人ID (外键)
|
||||
Id int64 `json:"id,string"` // 认证记录ID (主键,用于管理员操作)
|
||||
UserId int64 `json:"userId,string"` // 申请人ID (外键)
|
||||
UserNickname string `json:"userNickname"` // 冗余显示,方便前端展示
|
||||
Role string `json:"role"` // 申请角色: player, owner
|
||||
Status string `json:"status"` // pending, approved, rejected
|
||||
@@ -260,3 +260,4 @@ service users-api {
|
||||
@handler RejectVerification
|
||||
post /verifications/:id/reject (RejectVerificationReq) returns (VerificationEmptyResp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user