feat: enhance tenant management with status description and improved UI components

This commit is contained in:
2025-12-16 23:25:46 +08:00
parent 2a12e1c3a9
commit e8b2699104
11 changed files with 320 additions and 98 deletions

View File

@@ -21,6 +21,20 @@ type UserStatus string
// ENUM( pending_verify, verified, banned )
type TenantStatus string
// Description in chinese
func (t TenantStatus) Description() string {
switch t {
case "pending_verify":
return "待审核"
case "verified":
return "已审核"
case "banned":
return "已封禁"
default:
return "未知状态"
}
}
// swagger:enum TenantUserRole
// ENUM( member, tenant_admin)
type TenantUserRole string