Christ
|
5f8d999ab0
|
阶段六:完成全量架构、兼容退场和注释收口
|
2026-08-19 02:15:57 +08:00 |
|
Christ
|
9eb6be2875
|
重构:完成架构一致性整改与生命周期收口
|
2026-08-18 14:05:08 +08:00 |
|
Christ
|
6d9f842244
|
收口P0敏感访问审计与运维输出脱敏
|
2026-08-15 22:07:53 +08:00 |
|
Christ
|
0a45fd4a8b
|
完成审计重开与敏感设置脱敏切片
重开阶段2、4、5、8、9、10的完成状态,明确测试通过不等于架构完成。
管理端系统设置不再返回敏感明文,支持敏感配置保留与显式清除;dbverify仅输出Cookie长度和指纹;同步前端脱敏状态、回归测试和嵌入资源。
验证:make check;npm test --prefix frontend;npm run typecheck --prefix frontend。
|
2026-08-15 12:53:02 +08:00 |
|
Christ
|
ea1f2ec430
|
阶段十:完成 Go Cmd Tools 注释基线清零
|
2026-08-15 05:40:01 +08:00 |
|
Christ
|
25419c027f
|
修复登录续期与数据库验证回归
- 修复密码登录、续期和账号编辑链路的边界问题
- 补齐 dbverify、后端与前端单测
- 同步 Docker 与前端构建产物
|
2026-07-09 16:08:16 +08:00 |
|
Christ
|
3d37ff7917
|
chore: checkpoint repaired xianyu-go baseline
|
2026-07-08 03:46:15 +08:00 |
|
 ChristandClaude Opus 4.8
|
62705c524d
|
fix(db): 真实容器验证 Postgres/MySQL 方言修复
Docker 起 mysql:8 / postgres:16 实跑迁移+核心 CRUD,发现并修复三处阻断问题:
- pgx 不支持 ? 占位符:新增 pgx_compat driver 包裹 pgx stdlib,把 ? 重写为 $N
(internal/db/pgx_compat.go),driverPgx 指向它;全仓库 ? 写法零改动。
- pgx 对 BOOLEAN 严格按 bool 读写,与 int/boolToInt 写法不兼容:Postgres
migration 的 BOOLEAN 列改 INTEGER 0/1,与 SQLite/MySQL 对齐 (00001/00004/00008)。
- pgx 不支持 Result.LastInsertId:新增 insertReturningID helper,Postgres 走
INSERT ... RETURNING id,SQLite/MySQL 走 LastInsertId (Cards/Keywords/
Notifications/Automation 的 INSERT 路径)。
附带 MySQL 部署加固:parseDBURL 自动补 multiStatements=true(缺失会静默只执行
首条迁移语句);base_url TEXT→VARCHAR(512)(strict mode 拒绝 TEXT+DEFAULT)。
新增 cmd/dbverify 三库迁移+核心 CRUD 烟囱测试工具。
验证:SQLite/MySQL/Postgres 三库 9 步 CRUD 全通过;go test ./... 与 go vet 通过。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-07-06 16:51:38 +08:00 |
|