fix: 修复后端代码违规并更新协议文档

- 修复 notifications 模块 datetime.now() 缺少时区问题
- 用 ApiProblemError 替换 BaseService 中的 HTTPException
- 更新协议文档:添加错误码、繁体字段、邀请相关协议
- 升级 Docker 镜像版本
This commit is contained in:
qzl
2026-04-16 10:51:08 +08:00
parent aea514a9b5
commit 443c0c80ae
12 changed files with 113 additions and 17 deletions
@@ -161,9 +161,11 @@ During run streaming, backend emits standard AG-UI lifecycle events and two divi
"binaryCode": "101001",
"changedBinaryCode": "100001",
"guaName": "山火贲",
"guaNameHant": "山火賁",
"upperName": "艮",
"lowerName": "离",
"targetGuaName": "山雷颐",
"targetGuaNameHant": "山雷頤",
"worldPosition": 1,
"responsePosition": 4,
"hasChangingYao": true,
@@ -192,7 +194,9 @@ During run streaming, backend emits standard AG-UI lifecycle events and two divi
{
"position": 1,
"spiritName": "虎",
"spiritNameHant": "虎",
"relationName": "官鬼",
"relationNameHant": "官鬼",
"tiganName": "卯",
"elementName": "木",
"isYang": true,
@@ -206,13 +210,27 @@ During run streaming, backend emits standard AG-UI lifecycle events and two divi
{
"position": 2,
"relationName": "父母",
"relationNameHant": "父母",
"tiganName": "午",
"elementName": "火"
}
]
],
"specialStatus": [],
"interactions": [],
"timeEffect": [],
"riChenZhangSheng": []
}
```
Field notes:
- `guaNameHant`, `targetGuaNameHant`: Traditional Chinese variants for卦名.
- `spiritNameHant`, `relationNameHant`: Traditional Chinese variants for六神/六亲 names.
- `specialStatus`: Special hexagram status indicators.
- `interactions`: 爻位 interaction descriptions.
- `timeEffect`: Time-based effect descriptions.
- `riChenZhangSheng`: 日辰长生相关 information.
### 2) `TEXT_MESSAGE_END`
- Standard final answer event.