- 将 Python 代码移至 analyzer/ 目录(含 venv) - 拆分 Go 服务器代码为模块化结构: - config/: 配置加载 - model/: 请求/响应模型 - service/: 业务逻辑 - handler/: API处理器 - 添加 .gitignore 文件 - 删除旧的独立脚本文件
19 lines
400 B
YAML
19 lines
400 B
YAML
# BillAI 服务器配置文件
|
|
|
|
# 服务配置
|
|
server:
|
|
port: 8080
|
|
|
|
# Python 配置
|
|
python:
|
|
# Python 解释器路径(相对于项目根目录或绝对路径)
|
|
path: analyzer/venv/bin/python
|
|
# 分析脚本路径(相对于项目根目录)
|
|
script: analyzer/clean_bill.py
|
|
|
|
# 文件目录配置(相对于项目根目录)
|
|
directories:
|
|
upload: server/uploads
|
|
output: server/outputs
|
|
|