网关V1,添加批量写

This commit is contained in:
2025-08-13 18:13:09 +08:00
commit 04bdb5f52b
1377 changed files with 186064 additions and 0 deletions

10
gateway/config_loader.py Normal file
View File

@ -0,0 +1,10 @@
import json
import os
def load_config(config_path="config/config.json"):
"""加载配置文件"""
if not os.path.exists(config_path):
raise FileNotFoundError(f"Configuration file not found: {config_path}")
with open(config_path, "r") as f:
return json.load(f)