查询销售机会多级联选选项
POST https://qw-openapi-tx.dustess.com/saleChance/v2/getCascadeOption?accessToken=
Content-Type: application/json
字段 | 类型 | 描述 | 是否必须 |
---|---|---|---|
accessToken | String | accessToken | 是 |
字段 | 类型 | 描述 | 是否必须 |
---|---|---|---|
field_name | String | 多级联选字段的字段业务id | 是 |
响应参数名 | 类型 | 说明 |
---|---|---|
success | Bool | 请求状态,true:成功,false:失败 |
code | Int | 响应代码,错误时存在 |
msg | String | 消息提示 |
data | Object[] | 数据信息 |
data.id | String | 节点id |
data.parent_id | String | 父节点id |
data.name | String | 选项名 |
data.child | Object[] | 子节点列表 结构同data |
data.child_num | Int | 子节点数量 |
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"field_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"parent_id": "49cafcfb-0192-11ec-b1e5-3a9b676ae5ed",
"name": "根节点",
"child_num":3,
"child": [
{
"field_id": "49cafd59-0192-11ec-b1e5-3a9b676ae5ed",
"parent_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"name": "一级子节点A",
"child_num":2,
"child": [
{
"field_id": "49cafd62-0192-11ec-b1e5-3a9b676ae5ed",
"parent_id": "49cafd59-0192-11ec-b1e5-3a9b676ae5ed",
"name": "A-1",
"child_num":0,
"child": []
},
{
"field_id": "4ce11df3-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "49cafd59-0192-11ec-b1e5-3a9b676ae5ed",
"name": "A-2",
"child_num":0,
"child": []
}
]
},
{
"field_id": "4ce11e26-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"name": "一级子节点B",
"child_num":1,
"child": [
{
"field_id": "4ce11e32-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e26-fb63-11ec-bdb5-86f4f025f7c4",
"name": "B的子节点",
"child_num":0,
"child": []
}
]
},
{
"field_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "49cafd35-0192-11ec-b1e5-3a9b676ae5ed",
"name": "一级子节点C",
"child_num":3,
"child": [
{
"field_id": "4ce11e47-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"name": "C-1",
"child_num":0,
"child": []
},
{
"field_id": "4ce11e51-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"name": "C-2",
"child_num":0,
"child": []
},
{
"field_id": "4ce11e5c-fb63-11ec-bdb5-86f4f025f7c4",
"parent_id": "4ce11e3c-fb63-11ec-bdb5-86f4f025f7c4",
"name": "C-3",
"child_num":0,
"child": []
}
]
}
]
}
]
}
修改于 2024-09-19 06:22:26