Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an internal kernel API /api/av/appendAttributeViewDetachedBlocksWithValues #11608

Closed
88250 opened this issue May 31, 2024 · 2 comments
Closed
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented May 31, 2024

创建行并插值。

https://ld246.com/article/1717014564274

示例如下:

image

参数:

{
  "avID": "20240118120204-kwyzf77",
  "blocksValues": [
    [
      {
        "keyID": "20240118120204-w6cggab",
        "block": {
          "content": "Test block"
        }
      },
      {
        "keyID": "20240118203822-io6ofxb",
        "text": {
          "content": "Test text"
        }
      },
      {
        "keyID": "20240531232156-ahsyx8l",
        "number": {
          "content": 1234
        }
      }
    ]
  ]
}
  • blocksValues 是个二维数组,对应表格视图的行列
  • 参数中的值可以参考源码 kernel/av/value.go 中的 Value 结构体

返回值:

{
    "code": 0,
    "msg": "",
    "data": null
}
@88250 88250 self-assigned this May 31, 2024
@88250 88250 added this to the 3.1.0 milestone May 31, 2024
@88250 88250 changed the title Add an internal kenerl API /api/av/addAttributeViewKeyValues Add an internal kenerl API /api/av/addAttributeViewBlockWithValues May 31, 2024
@88250 88250 changed the title Add an internal kenerl API /api/av/addAttributeViewBlockWithValues Add an internal kenerl API /api/av/appendAttributeViewDetachedBlocksWithValues May 31, 2024
@88250 88250 changed the title Add an internal kenerl API /api/av/appendAttributeViewDetachedBlocksWithValues Add an internal kernel API /api/av/appendAttributeViewDetachedBlocksWithValues May 31, 2024
@88250 88250 closed this as completed May 31, 2024
@88250 88250 modified the milestones: 3.1.0, 3.0.17 May 31, 2024
@lovelife88
Copy link

通过这个API可以在新建数据行批量设置属性值,能否提供API来批量修改某个数据行的属性? @88250

@88250
Copy link
Member Author

88250 commented Jun 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants