获取材料类型列表

更新时间:2021-12-22 10:26:33

接口说明

获取材料类型列表

基本信息

请求方式: GET

请求路径:

https://prod.open-api.mysre.cn/eq/{tenantCode}/api/material-task/get-material-type-list

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenantCode path string 租户code
material_id query string 材料id
bidsection_id query string 39d87de4-f37e-1ccb-7ec7-0a56ce70076c 标段id

请求示例

{
    "material_id": "1ecd239f-7142-11e7-b06d-2c44fd7fa0a8",
    "bidsection_id": "39d87de4-f37e-1ccb-7ec7-0a56ce70076c"
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "",
    "data": [
        {
            "id": "39e0dcfc-e2fc-2627-63a6-388b2b39ddfa",
            "name": "辉",
            "quantity_unit": "",
            "material_id": "1ecd1de5-7142-11e7-b06d-2c44fd7fa0a8"
        },
        {
            "id": "39e0dd03-ca3f-e8ab-25c6-3865630f509d",
            "name": "饭麸果",
            "quantity_unit": "套",
            "material_id": "1ecd1de5-7142-11e7-b06d-2c44fd7fa0a8"
        }
    ]
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number
errmsg string
data array
data.id string
data.name string
data.category_name string
data.category_id string
data.quantity_unit string
data.material_id string

失败返回示例

{
  "errcode": -1,
  "errmsg": "错误原因"
}

返回参数说明(失败)

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

results matching ""

    No results matching ""