Christ
|
9eb6be2875
|
重构:完成架构一致性整改与生命周期收口
|
2026-08-18 14:05:08 +08:00 |
|
Christ
|
6d9f842244
|
收口P0敏感访问审计与运维输出脱敏
|
2026-08-15 22:07:53 +08:00 |
|
Christ
|
ea1f2ec430
|
阶段十:完成 Go Cmd Tools 注释基线清零
|
2026-08-15 05:40:01 +08:00 |
|
Christ
|
9adc77df73
|
fix(商品同步): 修复全量同步删除与规则生命周期
|
2026-08-10 11:21:35 +08:00 |
|
Christ
|
d7abbfb2b6
|
完善服务端交互日志与初始化测试
统一划分 MTOP 与 WebSocket 日志等级,增加 Token 安全指纹和请求耗时诊断;补充 init-admin 临时数据库测试;同步 README 的镜像发布说明。
|
2026-08-08 12:05:43 +08:00 |
|
Christ
|
3d37ff7917
|
chore: checkpoint repaired xianyu-go baseline
|
2026-07-08 03:46:15 +08:00 |
|
 ChristandClaude Opus 4.8
|
0fa5d6617c
|
refactor(db): 阶段A - driver 抽象 + SQLite 保持工作
- db.Open 改为接受 URL(sqlite:// mysql:// postgres://),返回 (db, dialect, err)
- 向后兼容:不含 scheme 的路径仍按 SQLite 文件处理
- migration 移到 migrations/sqlite/ 子目录,embed 包含三个方言目录
- Migrate 按方言选择子目录 + goose dialect
- Store 加 Dialect 字段,NewStore(db, dialect)
- cmd/server 加 -db-url 和 DATABASE_URL 环境变量(优先级:env > -db-url > -db)
- cmd/init-admin 同步支持 URL
- 新增依赖 pgx/v5、go-sql-driver/mysql
- mysql/postgres migration 目录暂为 SQLite 副本占位,阶段B/C 替换
- 所有测试调用方更新为新签名
验证:现有测试全过(SQLite 回归),SQLite 行为不变
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-07-06 12:35:01 +08:00 |
|
 ChristandClaude Opus 4.8
|
980de41b53
|
chore: 重构配套改动 + 包文档 + 构建产物清理
automation 重构期间的配套修改:
- browser:订单抓取/密码登录/二维码刷新/stealth 等适配新流程,删 search.go
- db:cookies/orders_ext/extras/sessions/users/password/repository 等调整
- xianyu:mtop client、protocol(sign/decrypt/msgpack/cookies)、qrlogin、ws、ua
- server:admin/analytics/auth/cookie/helpers/item/item_publish_batch handlers
- frontend:App/Dashboard/ItemList/Rules/Sidebar/api/types,删 Keywords/TestPage
- auth、notify、webui、go.mod 等
本次会话补充:
- cmd/server、cmd/init-admin 改为 // Package main 开头的标准包文档
- .gitignore 加 internal/webui/static/assets/(hash 化构建产物不入库)
- internal/webui/static/index.html 重新构建
全量 go build/vet/test + race + 前端 test/build 通过。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-30 21:41:03 +08:00 |
|
Christ
|
074554a6de
|
Initial xianyu-go repository
|
2026-06-28 11:54:39 +08:00 |
|