多级联选列表
POST https://qw-openapi-tx.dustess.com/open-integration-api/customer/v2/getCustomTreeFieldList?accessToken=
Content-Type: application/json
字段 | 类型 | 描述 | 是否必须 |
---|---|---|---|
accessToken | String | accessToken | true |
请求参数名 | 类型 | 说明 | 是否必须 |
---|---|---|---|
field_id | String | 多级联选字段id,获取完整的多级联选数据(1、2、3级) | true |
{
"field_id": "field2"
}
响应参数名 | 类型 | 说明 |
---|---|---|
success | Bool | 请求状态,true:成功,false:失败 |
code | Int | 响应代码 |
msg | String | 消息提示 |
data | Object[] | 数据信息 |
data.field_id | String | 节点id |
data.parent_id | String | 父节点id |
data.name | String | 名字 |
data.childs | Object[] | 子级列表 |
data.childNum | Int | 子节点数量 |
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"field_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"parent_id": "49cafcfb-0192-11ec-b1e5-3a9b676ae5ed",
"name": "根节点",
"childNum":3,
"childs": [
{
"field_id": "49cafd59-0192-11ec-b1e5-3a9b676ae5ed",
"parent_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"name": "一级子节点A",
"childNum":2,
"childs": [
{
"field_id": "49cafd62-0192-11ec-b1e5-3a9b676ae5ed",
"parent_id": "49cafd59-0192-11ec-b1e5-3a9b676ae5ed",
"name": "A-1",
"childNum":0,
"childs": []
},
{
"field_id": "4ce11df3-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "49cafd59-0192-11ec-b1e5-3a9b676ae5ed",
"name": "A-2",
"childNum":0,
"childs": []
}
]
},
{
"field_id": "4ce11e26-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"name": "一级子节点B",
"childNum":1,
"childs": [
{
"field_id": "4ce11e32-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e26-fb63-11ec-bdb5-86f4f025f7c4",
"name": "B的子节点",
"childNum":0,
"childs": []
}
]
},
{
"field_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"name": "一级子节点C",
"childNum":3,
"childs": [
{
"field_id": "4ce11e47-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"name": "C-1",
"childNum":0,
"childs": []
},
{
"field_id": "4ce11e51-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"name": "C-2",
"childNum":0,
"childs": []
},
{
"field_id": "4ce11e5c-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"name": "C-3",
"childNum":0,
"childs": []
}
]
}
]
}
]
}
{
"success": false,
"code": 10001,
"msg": "system unknown error",
"data": null
}
``
修改于 2024-09-18 11:08:56