feat: add user_list
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user