feat(collect-routing): 前端按服务端开关分流「启动」到本地客户端或后台

- 新增 GET /api/collect-routing 封装与类型,两个工具页进页各读一次
- 外观专利页恢复本地推送链路(取队列载荷 → guard → activate → enqueue_json),
  开关关闭时退回「提交后台执行」;按钮与提示文案随开关切换
- 相似ASIN 开关关闭时只建单不推队列,等 Linux 后台认领
- queue-payload / activate 端点与 DTO 从 943cf2d62^ 原样恢复
- catch 棘轮 blocks 301→303:新增两支都有用户可见出口,silent 未变
This commit is contained in:
2026-10-29 20:35:25 +08:00
parent 39c01ada44
commit 4d38781005
9 changed files with 283 additions and 11 deletions
+5
View File
@@ -299,14 +299,19 @@ test('test_endpoints_frozen_snapshot', () => {
},
"appearancePatent": {
"parse": "/api/appearance-patent/parse",
"queuePayload": "/api/appearance-patent/tasks/{taskId}/queue-payload",
"dashboard": "/api/appearance-patent/dashboard",
"history": "/api/appearance-patent/history",
"historyDelete": "/api/appearance-patent/history/{resultId}",
"progressBatch": "/api/appearance-patent/tasks/progress/batch",
"progressLight": "/api/appearance-patent/tasks/progress/light",
"taskActivate": "/api/appearance-patent/tasks/{taskId}/activate",
"taskDelete": "/api/appearance-patent/tasks/{taskId}",
"resultDownload": "/api/appearance-patent/results/{resultId}/download"
},
"collectRouting": {
"get": "/api/collect-routing"
},
"userSecret": {
"bundle": "/api/user-secrets",
"save": "/api/user-secrets/{moduleKey}",