获取标段关联的检查项树

更新时间:2021-10-14 19:52:42

接口说明

获取标段关联的检查项树

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/bid-section/check-item-tree

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
project_id body string 39ff70b4-7376-6fc3-0f15-2ce1824c7e8d 项目ID
bidsection_id body string 39ff70ba-0283-0743-969d-969492863305 标段ID
item_type body string 实测实量 检查类型
tenant_code query string zjalpha 租户code

请求示例

{
    "project_id":"39ff70b4-7376-6fc3-0f15-2ce1824c7e8d",
    "bidsection_id":"39ff70ba-0283-0743-969d-969492863305",
    "item_type":"实测实量"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "请求成功",
    "data": [{
            "parent_id": "402ed9eb-0446-47a2-864b-5c2e25d32e17",
            "label": "装饰工程",
            "primary_key": "id",
            "biz_id": "39d772e6-aa0e-7252-5ac8-f17a0067a038",
            "child_node": [{
                "parent_id": "39d772e6-aa0e-7252-5ac8-f17a0067a038",
                "label": "墙面平整度",
                "primary_key": "id",
                "biz_id": "39d772e6-aa18-98a5-454c-971befc449f9",
                "child_node": []
            }]
        },
        {
            "parent_id": "402ed9eb-0446-47a2-864b-5c2e25d32e17",
            "label": "混凝土工程",
            "primary_key": "id",
            "biz_id": "39d772d7-993b-f994-b77f-c91e3cfb9e78",
            "child_node": [{
                "parent_id": "39d772d7-993b-f994-b77f-c91e3cfb9e78",
                "label": "截面尺寸",
                "primary_key": "id",
                "biz_id": "39da341b-f0ab-4d8c-7919-a495b167b922",
                "child_node": []
            }]
        }
    ]
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 错误码
errmsg string 错误信息
data array 数据
data.parent_id string 父ID
data.label string 检查项名称
data.primary_key string 特殊业务需要字段
data.biz_id string 检查项ID
data.child_node array 子节点数组
data.child_node.parent_id string
data.child_node.label string
data.child_node.primary_key string
data.child_node.biz_id string
data.child_node.child_node array

失败返回示例

{
  "errcode":4001,
  "errmsg":"必填参数不能为空",
  "data":null
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number
errmsg string
data object

results matching ""

    No results matching ""