upload project source code

This commit is contained in:
2026-04-30 18:49:43 +08:00
commit 9b394ba682
2277 changed files with 660945 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
from pathlib import Path
# 项目根目录
BASE_DIR = Path(__file__).parent.parent.parent
# alembic 迁移文件存放路径
ALEMBIC_VERSION_DIR = BASE_DIR / 'app' / 'alembic' / 'versions'
# 日志文件路径
LOG_DIR = BASE_DIR / 'logs'
# 静态资源目录
STATIC_DIR = BASE_DIR / 'static'
# 上传文件目录
UPLOAD_DIR = STATIC_DIR / 'upload'
# 下载文件目录
DOWNLOAD_DIR = STATIC_DIR / 'download'
# 环境配置目录
ENV_DIR = BASE_DIR / 'env'
# 初始化脚本
SCRIPT_DIR: Path = BASE_DIR / 'app' / 'scripts' / 'data'
# 模版文件配置
TEMPLATE_DIR: Path = BASE_DIR / 'app' / 'api' / 'v1' / 'module_generator' / 'gencode' / 'templates'
# banner.txt 文件路径
BANNER_FILE = BASE_DIR / 'banner.txt'