搜索材料树

更新时间:2021-01-25 13:14:24

接口说明

搜索材料树

基本信息

请求方式:GET

请求路径:

https://prod.open-api.mysre.cn/eq/{tenantCode}/api/material/search-material-tree

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenantCode path string 租户code
material_name query string 材料名称

请求示例

{
    "material_name":"钢筋"
}

返回成功示例

{
  "status": true,
  "data": [
      {
        "category_id": "123123",
        "category_name": "阶段名称1",
        "material": [
          {
            "material_id": "48390sjfa",
            "material_name": "材料名称1",
                  "quantity_unit": "根",
            "material_type": [
              {
              "material_type_id": "34804384",
              "material_type_name": "材料类型名称1",
                    "quantity_unit": "根"
              }
            ]
          }  
        ]
      }
    ]
}

返回参数说明(成功)

参数名 参数类型 描述
status bool 是否成功
data array 数据
category_id string 阶段id
category_name string 阶段名称
material array 材料
material_id string 材料id
material_name string 材料名称
quantity_unit string 材料数量单位
material_type array 材料类型
material_type_id string 材料类型id
material_type_name string 材料类型名称
quantity_unit string 材料类型数量单位

失败返回示例

{
  "status": false,
  "message": "错误原因"
}

返回参数说明(失败)

参数名 参数类型 描述
status bool 是否成功
message string 消息内容

results matching ""

    No results matching ""