feat: add user_list

This commit is contained in:
2025-12-17 13:24:32 +08:00
parent dae9a0e55a
commit 14842d989c
20 changed files with 736 additions and 130 deletions

View File

@@ -15,6 +15,20 @@ type Role string
// ENUM(pending_verify, verified, banned, )
type UserStatus string
// Description
func (t UserStatus) Description() string {
switch t {
case UserStatusPendingVerify:
return "待审核"
case UserStatusVerified:
return "已审核"
case UserStatusBanned:
return "已封禁"
default:
return "未知状态"
}
}
// tenants
// swagger:enum TenantStatus