feat(guild-messaging): switch seq allocation to DB transaction with row lock

This commit is contained in:
nav
2026-05-12 10:35:41 +00:00
parent 4b4755b33b
commit fa5d0d31b2
4 changed files with 121 additions and 52 deletions

View File

@@ -48,7 +48,7 @@
- [x] 编辑消息(可编辑窗口策略先简化)
- [x] 删除消息(软删 vs 硬删,先定策略)
- [x] `GET messages` 分页seq 区间 + limit
- [ ] seq 分配改为 DB 原子方案(避免并发冲突)
- [x] seq 分配改为 DB 原子方案(避免并发冲突)
### 2.3 一致性与回补
- [ ] 回补接口:`seq_from/seq_to`