Update codebase and add coverage report

Removed an old run configuration, added a new coverage XML report, and updated multiple source files including main.py, middleware, models, routers, services, tests, and utility modules. Also updated pyproject.toml and the lock file. These changes likely include code improvements, test coverage updates, and dependency adjustments.
This commit is contained in:
2025-12-26 14:56:08 +08:00
parent a716b2b0db
commit 54784eea3b
17 changed files with 4583 additions and 271 deletions

View File

@@ -6,11 +6,6 @@ async def verify_captcha(request: CaptchaRequestBase) -> bool:
"""
验证 Turnstile 的 token 是否有效。
:param token: 用户提交的 Turnstile token
:type token: str
:param secret_key: Turnstile 的密钥
:type secret_key: str
:return: 如果验证成功返回 True否则返回 False
:rtype: bool
"""