refactor: reorganize backend module boundaries

This commit is contained in:
jxxghp
2026-08-14 19:53:33 +08:00
parent fe0b444ceb
commit 369d7d6448
584 changed files with 2423 additions and 2275 deletions
+4 -4
View File
@@ -9,11 +9,11 @@ from fastapi.concurrency import run_in_threadpool
from jinja2 import Template
from pyquery import PyQuery
from app.platform.config import settings
from app.platform.log import logger
from app.runtime.config import settings
from app.runtime.log import logger
from app.schemas.types import MediaType
from app.infrastructure import rust as rust_accel
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.adapters.system import rust as rust_accel
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
from app.foundation.url import UrlUtils
+3 -3
View File
@@ -1,11 +1,11 @@
import urllib.parse
from typing import Tuple, List
from app.platform.config import settings
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.platform.log import logger
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
+3 -3
View File
@@ -1,10 +1,10 @@
from typing import Tuple, List, Optional
from app.platform.config import settings
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.platform.log import logger
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
+3 -3
View File
@@ -4,11 +4,11 @@ import re
from typing import Tuple, List, Optional
from urllib.parse import urlparse
from app.platform.config import settings
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.platform.log import logger
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
+3 -3
View File
@@ -2,11 +2,11 @@ import base64
import json
from typing import List, Optional, Tuple
from app.platform.config import settings
from app.runtime.config import settings
from app.db.systemconfig_oper import SystemConfigOper
from app.platform.log import logger
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
+3 -3
View File
@@ -3,10 +3,10 @@ import json
import time
from typing import List, Optional, Tuple
from app.platform.config import settings
from app.platform.log import logger
from app.runtime.config import settings
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import AsyncRequestUtils, RequestUtils
from app.adapters.network.http import AsyncRequestUtils, RequestUtils
from app.domain.string import StringUtils
+4 -4
View File
@@ -1,10 +1,10 @@
import re
from typing import Tuple, List, Optional
from app.platform.cache import cached
from app.platform.config import settings
from app.platform.log import logger
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.runtime.cache import cached
from app.runtime.config import settings
from app.runtime.log import logger
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.foundation.singleton import SingletonClass
from app.domain.string import StringUtils
+3 -3
View File
@@ -1,10 +1,10 @@
from typing import List, Tuple, Optional
from urllib.parse import quote
from app.platform.config import settings
from app.platform.log import logger
from app.runtime.config import settings
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import RequestUtils, AsyncRequestUtils
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
+3 -3
View File
@@ -2,10 +2,10 @@ import base64
import json
from typing import List, Optional, Tuple
from app.platform.config import settings
from app.platform.log import logger
from app.runtime.config import settings
from app.runtime.log import logger
from app.schemas import MediaType
from app.foundation.http import AsyncRequestUtils, RequestUtils
from app.adapters.network.http import AsyncRequestUtils, RequestUtils
from app.domain.string import StringUtils