refactor: 重构项目结构
- 将 Python 代码移至 analyzer/ 目录(含 venv) - 拆分 Go 服务器代码为模块化结构: - config/: 配置加载 - model/: 请求/响应模型 - service/: 业务逻辑 - handler/: API处理器 - 添加 .gitignore 文件 - 删除旧的独立脚本文件
This commit is contained in:
18
server/config.yaml
Normal file
18
server/config.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# BillAI 服务器配置文件
|
||||
|
||||
# 服务配置
|
||||
server:
|
||||
port: 8080
|
||||
|
||||
# Python 配置
|
||||
python:
|
||||
# Python 解释器路径(相对于项目根目录或绝对路径)
|
||||
path: analyzer/venv/bin/python
|
||||
# 分析脚本路径(相对于项目根目录)
|
||||
script: analyzer/clean_bill.py
|
||||
|
||||
# 文件目录配置(相对于项目根目录)
|
||||
directories:
|
||||
upload: server/uploads
|
||||
output: server/outputs
|
||||
|
||||
Reference in New Issue
Block a user