Skip to content

需要适配新版memos的接口和返回格式 #668

Description

@SeqCrafter

检查清单

  • 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • 尝试过在本地测试运行官方 demo 源码。
  • 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

新版memos的接口改为了:<BaseUrl>/api/v1/memos?filter=creator_id==<id>, 接口的返回内容变成了对象了:

{
    "memos": [
        {
            "name": "memos/mfACvmG7H82ynU7BPkMHwe",
            "state": "NORMAL",
            "creator": "users/xiaohanys",
            "createTime": "2026-04-23T12:07:55Z",
            "updateTime": "2026-04-23T12:07:55Z",
            "content": "hahaha",
            "visibility": "PUBLIC",
            "tags": [],
            "pinned": false,
            "attachments": [],
            "relations": [],
            "reactions": [],
            "property": {
                "hasLink": false,
                "hasTaskList": false,
                "hasCode": false,
                "hasIncompleteTasks": false,
                "title": ""
            },
            "snippet": "hahaha"
        },
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions