refactor(collect): 移除旧补资料链接 token 体系

- 删除管理端生成补资料链接接口、链接仓储读写与 TTL 配置服务
- 删除补资料链接配置面板及前端相关服务、类型
- 新增迁移 113:删除 work_order_material_links 表与 work_order_material_link 配置
- 「复制补资料链接」改为本地复制 /supplement/<平台订单号>,不再请求后端
This commit is contained in:
2026-11-01 18:26:07 +08:00
parent a2cf48f5fc
commit db73e8f820
16 changed files with 36 additions and 555 deletions
@@ -0,0 +1,12 @@
-- 113_drop_work_order_material_links.sql —— 下线旧的「一次性补资料链接 token」体系
--
-- 背景:补资料页已改为按平台订单号直连(/supplement/:订单号),
-- 不再需要客服先生成 token 链接:
-- - 后端:管理端 /orders/:id/material-link、链接仓储读写、material-link-config 配置接口
-- - 前端:补资料链接有效期设置面板、生成链接请求
-- - 数据:work_order_material_links 表、app_config_entries.work_order_material_link
-- 历史 token 记录已无任何读取入口,直接随表删除。
DROP TABLE IF EXISTS work_order_material_links;
DELETE FROM app_config_entries WHERE config_key = 'work_order_material_link';