feat: 新增租户 active 状态与统一禁用闸门

This commit is contained in:
gitea committed 2026-11-08 12:52:05 +08:00
1 parent 634f0e2b78
commit 0ff3d9a313
21 files changed
+855 -14

No files matched your search

+22
View File
@@ -98,6 +98,28 @@ export const HELP_REGISTRY: AreaHelp[] = [
],
description: "Safely updates the display name of a configured enterprise without modifying underlying files manually."
},
{
name: "disable",
group: "企业配置",
summary: "Disable a tenant without removing it from enterprise search",
usage: ["seal-use corps disable <corpId> [--dry-run] [--confirm]"],
options: [
{ flag: "--dry-run", description: "Preview the active-state change without writing local config" },
{ flag: "--confirm", description: "Confirm the state change (required for live execution)" }
],
description: "Sets active=false on a Hose or Seal enterprise. The enterprise stays visible in `corps list/search`, but every command that explicitly resolves its ID is refused until it is enabled again."
},
{
name: "enable",
group: "企业配置",
summary: "Re-enable a disabled tenant",
usage: ["seal-use corps enable <corpId> [--dry-run] [--confirm]"],
options: [
{ flag: "--dry-run", description: "Preview the active-state change without writing local config" },
{ flag: "--confirm", description: "Confirm the state change (required for live execution)" }
],
description: "Sets active=true. This is the only command allowed to resolve a disabled enterprise, so a disabled tenant can always be restored."
},
{
name: "bind-test",
group: "测试配对与验证",