需登录 Session(requireLogin())。导出任务 token 绑定 session_id。
module = keywords | tdh | content | internal | infohub | internal_logs | infohub_logs
| action | 方法 | 说明 |
|---|---|---|
| list | GET | search, after_id, limit → rows, has_more |
| get | GET | keyword_id → data |
| save | POST | JSON body → ok, keyword_id |
| template | GET | 下载 xlsx 模板 |
| import_preview | POST | multipart file → preview_token, headers, preview_rows |
| import_confirm | POST | preview_token → imported, errors |
| import_cancel | POST | 清除暂存 |
| export_start | GET | → job_id, token |
| export_status | GET | job_id, token → status, progress |
| export_download | GET | 完成后下载 xlsx(一次性删除) |
POST import_preview 时可带:sync_tdh, sync_content, sync_internal, sync_infohub 及各 executor / planned_finish 字段,导入新词时自动创建子表行。