fix(user): add VerificationStatusNone for users without verification
Some checks failed
Deploy / deploy (pull_request) Has been cancelled
Build Backend / build-docker (pull_request) Has been cancelled
Build Backend / build (pull_request) Has been cancelled

Add VerificationStatusNone constant and update converter to return
general identity with none status instead of empty strings when user
has not applied for verification.
This commit is contained in:
lafay
2026-04-26 19:42:10 +08:00
parent f99687c405
commit 5d12397e29
2 changed files with 5 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ const (
VerificationStatusPending VerificationStatus = "pending" // 审核中
VerificationStatusApproved VerificationStatus = "approved" // 已通过
VerificationStatusRejected VerificationStatus = "rejected" // 已拒绝
VerificationStatusNone VerificationStatus = "none" // 无认证(对外展示用)
)
// User 用户实体