优化: 前后端字段对齐、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:
2026-05-13 18:53:53 +08:00
parent 4793b1a533
commit c5c2a64a48
17 changed files with 3034 additions and 13 deletions

View 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