feat: enhance tenant management with status description and improved UI components
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user