删除未被使用的backend/apps/jingrow/jingrow/utils/config.py文件

This commit is contained in:
jingrow 2025-10-11 23:09:04 +08:00
parent aaba1d310f
commit 7e07eddc76

View File

@ -1,41 +0,0 @@
# Copyright (c) 2025, JINGROW and contributors
# For license information, please see license.txt
"""
Jingrow Local 配置工具
SaaS 版完全一致的配置实现
"""
import os
import json
from typing import Dict, Any, Optional
def get_config(key: str = None, default: Any = None):
"""获取配置"""
if key is None:
return {}
# 从环境变量获取配置
return os.getenv(key, default)
def set_config(key: str, value: Any):
"""设置配置"""
os.environ[key] = str(value)
def get_site_config():
"""获取站点配置"""
return {
"site_name": "Jingrow Local",
"site_url": "http://localhost:8000",
"db_name": "jingrow_local",
"db_type": "sqlite"
}
def get_system_settings():
"""获取系统设置"""
return {
"enable_registration": True,
"enable_email": False,
"enable_sms": False,
"timezone": "Asia/Shanghai"
}