按功能模块拆分API路由到不同文件

This commit is contained in:
shuohigh@gmail.com
2025-05-19 15:02:34 +08:00
parent c21e999188
commit 668a5a33d4
20 changed files with 708 additions and 629 deletions

View File

@@ -1,5 +1,4 @@
import asyncio
from typing import Optional, Tuple, Any, Coroutine
from typing import Optional, Tuple, Any
import httpx
import psutil
import sentry_sdk
@@ -17,7 +16,7 @@ class SentryUtils:
cpu_count = psutil.cpu_count()
mem = psutil.virtual_memory()
return (cpu_freq, cpu_count, mem)
return cpu_freq, cpu_count, mem
@staticmethod
def sentry_tracker(sentry_trace_id: Optional[str], sentry_baggage: Optional[str],