mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 04:46:26 +00:00
refactor: 统一状态字段为字符串类型并更新相关组件 refactor: 更新模型基类移除租户和客户相关字段 refactor: 简化数据权限控制逻辑 refactor: 优化类型注解使用Python 3.10+语法 refactor: 清理无用导入和注释 docs: 更新文档移除多租户相关内容
13 lines
379 B
Python
13 lines
379 B
Python
# -*- coding: utf-8 -*-
|
||
|
||
from app.config.path_conf import BANNER_FILE
|
||
from app.core.logger import log
|
||
|
||
def worship(env: str) -> None:
|
||
"""
|
||
获取项目启动Banner(优先读取 banner.txt)
|
||
"""
|
||
if BANNER_FILE.exists():
|
||
banner = BANNER_FILE.read_text(encoding='utf-8')
|
||
banner = f"🚀 当前运行环境: {env}\n{banner}"
|
||
log.info(banner) |