支持读取和更新画板块描述

Open
#2,921 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
api, backend

Research direction

Start by tracing the docs +fetch and whiteboard +update command implementations and checking the upstream Docx block schema and OpenAPI definitions for a board description field. The issue does not name source files or tests, so first establish whether the API exposes the field and how updates preserve existing block data. Done means returning and updating the description when supported, or documenting the confirmed upstream limitation and feedback channel.

Written by the indexing model from the issue text.

Description

bug domain/doc

飞书文档中的画板块支持在界面里填写描述,但目前 lark-cli 无法读取或更新这个字段:

  • docs +fetch 返回的画板块中没有描述。
  • whiteboard +update 只能更新画板内容,不能设置画板块描述。
  • 公开的 Docx block schema 中,board 目前只有 token、align、width、height;相比之下,图片块已经支持 caption.content。

因此暂时无法判断:这是 lark-cli 尚未封装已有接口,还是上游 OpenAPI 还没有开放画板描述字段。

复现步骤

  1. 在飞书文档中插入一个画板。
  2. 在飞书界面为画板填写描述,例如“图 1:链路演示”。
  3. 使用 docs +fetch 读取文档。
  4. 返回结果中找不到这段描述。
  5. 使用 whiteboard +update 更新画板时,也没有参数可以读取、保留或修改这段描述。

期望

如果上游 OpenAPI 已经支持该字段,希望 lark-cli:

  • 在 docs +fetch 的结果中返回画板描述。
  • 支持通过命令读取和更新画板描述,例如为相关命令增加 --description 参数。
  • 更新画板内容时保留已有描述,避免描述意外丢失。

如果上游 OpenAPI 尚未开放,也希望确认这一限制,并在 CLI 文档中注明,同时说明应向哪个上游渠道反馈。

Dominant language
Go
Stars
18.2k
Forks
1.4k
Avg merge
1d 3h
Merged PRs (30d)
18

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from larksuite/cli

All issues in larksuite/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.