diff --git a/app/core/__pycache__/__init__.cpython-310.pyc b/app/core/__pycache__/__init__.cpython-310.pyc index 2606d6a..2b46f47 100644 Binary files a/app/core/__pycache__/__init__.cpython-310.pyc and b/app/core/__pycache__/__init__.cpython-310.pyc differ diff --git a/app/core/device/__pycache__/dispatcher.cpython-310.pyc b/app/core/device/__pycache__/dispatcher.cpython-310.pyc index 34fac39..8eb5a45 100644 Binary files a/app/core/device/__pycache__/dispatcher.cpython-310.pyc and b/app/core/device/__pycache__/dispatcher.cpython-310.pyc differ diff --git a/app/core/device/dispatcher.py b/app/core/device/dispatcher.py index 9d4c0f7..5ce04cd 100644 --- a/app/core/device/dispatcher.py +++ b/app/core/device/dispatcher.py @@ -4,11 +4,11 @@ from typing import Dict, Any, Optional import asyncio from app.core.config import ProtocolType -from app.services.adb_service import ADBService -from app.services.ssh_service import SSHService -from app.services.at_service import ATService -from app.services.plnk_service import PLNKService -from app.services.atx_service import ATXService +from app.services.adb_service import AdbService +from app.services.ssh_service import SshService +from app.services.at_service import AtService +from app.services.plnk_service import PlnkService +from app.services.atx_service import AtxService from app.utils.log import get_logger logger = get_logger(__name__) @@ -22,13 +22,13 @@ class DeviceDispatcher: def _initialize_services(self): """初始化所有协议服务""" - self._services[ProtocolType.ADB] = ADBService() - self._services[ProtocolType.SSH] = SSHService() - self._services[ProtocolType.AT] = ATService() - self._services[ProtocolType.PLNK] = PLNKService() - self._services[ProtocolType.ATX] = ATXService() + self._services[ProtocolType.ADB] = AdbService() + self._services[ProtocolType.SSH] = SshService() + self._services[ProtocolType.AT] = AtService() + self._services[ProtocolType.PLNK] = PlnkService() + self._services[ProtocolType.ATX] = AtxService() # HDC服务可以复用ADB服务或单独实现 - self._services[ProtocolType.HDC] = ADBService() # 暂时复用ADB服务 + self._services[ProtocolType.HDC] = AdbService() # 暂时复用ADB服务 def get_service(self, protocol_type: str) -> Optional[Any]: """获取指定协议的服务实例""" diff --git a/app/schemas/__pycache__/adb.cpython-310.pyc b/app/schemas/__pycache__/adb.cpython-310.pyc new file mode 100644 index 0000000..c68fec5 Binary files /dev/null and b/app/schemas/__pycache__/adb.cpython-310.pyc differ diff --git a/app/schemas/__pycache__/ssh.cpython-310.pyc b/app/schemas/__pycache__/ssh.cpython-310.pyc new file mode 100644 index 0000000..562c9e6 Binary files /dev/null and b/app/schemas/__pycache__/ssh.cpython-310.pyc differ diff --git a/app/services/__pycache__/adb_service.cpython-310.pyc b/app/services/__pycache__/adb_service.cpython-310.pyc index 5e2625b..09ec6b0 100644 Binary files a/app/services/__pycache__/adb_service.cpython-310.pyc and b/app/services/__pycache__/adb_service.cpython-310.pyc differ diff --git a/app/services/__pycache__/at_service.cpython-310.pyc b/app/services/__pycache__/at_service.cpython-310.pyc new file mode 100644 index 0000000..9738088 Binary files /dev/null and b/app/services/__pycache__/at_service.cpython-310.pyc differ diff --git a/app/services/__pycache__/ssh_service.cpython-310.pyc b/app/services/__pycache__/ssh_service.cpython-310.pyc new file mode 100644 index 0000000..5dd3f57 Binary files /dev/null and b/app/services/__pycache__/ssh_service.cpython-310.pyc differ diff --git a/app/services/ssh_service.py b/app/services/ssh_service.py index a479f42..5f2922a 100644 --- a/app/services/ssh_service.py +++ b/app/services/ssh_service.py @@ -8,7 +8,7 @@ from app.utils.log import get_logger logger = get_logger(__name__) -class SSHService: +class SshService: """SSH服务类 - 实现SSH协议相关操作""" def __init__(self): diff --git a/logs/app.services.adb_service.log b/logs/app.services.adb_service.log new file mode 100644 index 0000000..e69de29 diff --git a/logs/app.services.ssh_service.log b/logs/app.services.ssh_service.log new file mode 100644 index 0000000..e69de29