feat: align account lifecycle

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
zyycn
2026-06-14 03:35:57 +08:00
co-authored by Codex
parent dfcd30bd84
commit fe8bb50df9
18 changed files with 666 additions and 79 deletions
+6
View File
@@ -255,6 +255,12 @@ fn refresh_account_error(error: RefreshAccountError, request_id: &str) -> AdminE
"Account not found",
request_id,
),
RefreshAccountError::LeaseAcquire => AdminError::new(
StatusCode::INTERNAL_SERVER_ERROR,
50001,
"Failed to acquire refresh lease",
request_id,
),
RefreshAccountError::TokenRefresherUnavailable => AdminError::new(
StatusCode::INTERNAL_SERVER_ERROR,
50001,