otherNoteTb: 1
This data as json
| id | source | method | user_id |
|---|---|---|---|
| 1 | simplenote | # Simplenote 搬家接口方法 ## 首选接口 通过 transNote 中继服务读取 Simplenote: - Base URL: `http://127.0.0.1:8888`(keng 后端所在服务器本机直连 transNote) - Header: `X-Api-Key: simpleNote888` - `GET /health`:健康检查 - `GET /notes`:列出全部 Simplenote 笔记,返回 `{ok, notes}`,每条含 `id/title/deleted` - `GET /note/<id>`:读取单条笔记正文,返回 `{ok, id, content}` ## 搬家流程 1. 调 `GET /notes`,过滤 `deleted=false` 的笔记。 2. 用户在 keng 前端勾选要搬家的笔记。 3. 后端逐条调 `GET /note/<id>` 读取完整正文。 4. 写入 keng 的 `noteTb`,tags 暂存为空数组。 5. comment 写入 `source=simplenote; source_id=<id>`,用于后续去重和查询。 6. 重复搬家时,如果 keng 已存在相同 `source/source_id` 的 comment,则跳过。 ## 禁止事项 搬家到 keng 只读取 Simplenote,不向 Simplenote 写入、删除或覆盖任何笔记。 | 1 |