Add stateful and stateless enterprise selection

This commit is contained in:
gitea committed 2026-08-12 11:38:25 +08:00
1 parent d383b3aad8
commit 0959cef1cc
22 files changed
+609 -187

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ CorpId:
in: query
schema:
type: string
description: Optional local enterprise config ID. Defaults to the current selected enterprise.
description: Local enterprise config ID. Required when global selection mode is stateless; optional in stateful mode, where the configured default enterprise is used.
Offset:
name: offset
in: query
+1 -1
View File
@@ -18,7 +18,7 @@ CorpSummary:
type: string
sourceType:
type: string
enum: [hose, direct]
enum: [hose, direct, seal]
current:
type: boolean
SwitchCorpRequest:
+1
View File
@@ -18,6 +18,7 @@ paths:
tags: [Corps]
operationId: getCurrentCorp
summary: Get current enterprise
description: Returns the configured default enterprise in stateful mode. Stateless mode has no current enterprise and requires an explicit corpId for enterprise operations.
responses:
"200":
description: Current enterprise.