Skip to content

端点

/api/av/searchAttributeViewNonRelationKey

searchAttributeViewNonRelationKey

源文件 (GitHub)

需要认证 需要管理员权限

接口描述

在指定的属性视图 (Attribute View) 中,根据关键词搜索非关系类型的列 (Key)。

请求参数

参数名类型必选描述
avIDstring要在其中搜索列的属性视图 ID。
keywordstring用于搜索列名称的关键词。

返回值

返回一个包含搜索到的非关系列信息的对象。

参数名类型描述
codenumber返回码,0 表示成功
msgstring返回信息
dataobject包含搜索结果的对象:
  • keys (array): 搜索到的非关系列列表。每个元素是一个对象,包含列的详细信息,例如:
    • id (string): 列 (Key) 的 ID。
    • name (string): 列 (Key) 的名称。
    • type (string): 列 (Key) 的类型 (例如 'text', 'number', 'date' 等)。
    • icon (string): 列 (Key) 的图标。

|

请求示例

返回示例

请求示例

POST /api/av/searchAttributeViewNonRelationKey
Content-Type: application/json
Authorization: Token your-api-token

{
  "avID": "20231027150000-abcdefgh",
  "keyword": "日期"
}

返回示例

{
  "code": 0,
  "msg": "",
  "data": {
    "keys": [
      {
        "id": "key-12345678",
        "name": "创建日期",
        "type": "date",
        "icon": "iconCalendar",
        "options": []
        // ... 其他列属性
      },
      {
        "id": "key-87654321",
        "name": "截止日期",
        "type": "date",
        "icon": "iconCalendar",
        "options": []
        // ... 其他列属性
      }
    ]
  }
}