Files
account-manager/scripts/service/account_service.py
chendelian 71bef19514
All checks were successful
技能自动化发布 / release (push) Successful in 5s
chore: auto release commit (2026-06-19 11:19:10)
2026-06-19 11:19:10 +08:00

69 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
"""
Account service layer — use cases invoked by CLI commands.
Each function handles:
1. Input validation
2. Logging key nodes
3. Calling the repository layer
4. Formatting JSON/stdout output
Raw secret is NEVER logged or printed in plaintext.
Implementation is split across service/*_commands.py modules to stay within
PyArmor trial per-file line limits. This module re-exports the public API.
"""
from service._svc_common import PlatformCallerMeta
from service.account_add_commands import cmd_account_add_secret, cmd_account_add_web
from service.account_mark_commands import (
cmd_account_mark_error,
cmd_account_mark_session,
cmd_account_mark_used,
)
from service.account_query_commands import (
cmd_account_get,
cmd_account_get_credential,
cmd_account_list,
cmd_account_pick_web,
cmd_get,
cmd_list_json,
cmd_pick_web,
)
from service.credential_commands import cmd_credential_pick, cmd_credential_resolve
from service.legacy_commands import (
cmd_delete_by_id,
cmd_delete_by_platform,
cmd_delete_by_platform_phone,
cmd_list,
)
from service.lease_commands import cmd_lease_cleanup, cmd_lease_list, cmd_lease_release
from service.platform_commands import cmd_platform_ensure, cmd_platform_get, cmd_platform_list
__all__ = [
"PlatformCallerMeta",
"cmd_account_add_secret",
"cmd_account_add_web",
"cmd_account_get",
"cmd_account_get_credential",
"cmd_account_list",
"cmd_account_mark_error",
"cmd_account_mark_session",
"cmd_account_mark_used",
"cmd_account_pick_web",
"cmd_credential_pick",
"cmd_credential_resolve",
"cmd_delete_by_id",
"cmd_delete_by_platform",
"cmd_delete_by_platform_phone",
"cmd_get",
"cmd_lease_cleanup",
"cmd_lease_list",
"cmd_lease_release",
"cmd_list",
"cmd_list_json",
"cmd_pick_web",
"cmd_platform_ensure",
"cmd_platform_get",
"cmd_platform_list",
]