fix(panel): 服务器列表的归属与可认领改由后端按账号判定,无邮箱管理员也能认出自己的服务器,所有者查询失败时显示未知且不给认领
This commit is contained in:
14 files changed
+323
-70
No files matched your search
@@ -339,6 +339,7 @@ components:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/ServerInfo'
|
||||
- type: object
|
||||
required: [owned, claimable]
|
||||
properties:
|
||||
owner:
|
||||
type: string
|
||||
@@ -346,6 +347,21 @@ components:
|
||||
The owner's display identity (email, or username when the address is
|
||||
absent). Absent for an unclaimed server or when the best-effort owner
|
||||
lookup failed.
|
||||
owned:
|
||||
type: boolean
|
||||
description: >-
|
||||
True when the caller claimed this server, decided by account id so an
|
||||
owner without an email is still recognized.
|
||||
claimable:
|
||||
type: boolean
|
||||
description: >-
|
||||
True for a live, unclaimed, non-system server, the same rule the claim
|
||||
route enforces. False whenever ownership is unknown.
|
||||
ownerUnknown:
|
||||
type: boolean
|
||||
description: >-
|
||||
Present and true when the owner lookup failed, so an absent owner says
|
||||
nothing about whether the server is claimed.
|
||||
system:
|
||||
type: boolean
|
||||
description: >-
|
||||
|
||||
Reference in new issue
Block a user