优化: 前后端字段对齐、AI分析JSON解析修复、AutoMigrate
- 修复登录参数 username→account - 修复前后端字段名不匹配 (ticketno/contactname/createtime等) - 修复AI分析GLM返回markdown包裹和priority类型问题 - 添加AutoMigrate自动建表 - 统一API路由为 /api/auth/ 前缀 - 添加config.example.yaml,.gitignore排除config.yaml
This commit is contained in:
12
backend/config.example.yaml
Normal file
12
backend/config.example.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
server:
|
||||
port: 8091
|
||||
db:
|
||||
host: 127.0.0.1
|
||||
port: 3306
|
||||
user: root
|
||||
password: your_password
|
||||
dbname: ticket_dev
|
||||
glm:
|
||||
api_key: your_api_key
|
||||
base_url: https://open.bigmodel.cn/api/paas/v4
|
||||
model: glm-4-flash
|
||||
Reference in New Issue
Block a user