获取批次列表

更新时间:2021-10-12 10:51:05

接口说明

获取项目现场检查批次分页列表

基本信息

请求方式: POST

请求路径:

https://prod.open-api.mysre.cn/check-batch/get-list

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string zjalpha 租户code
project_id body string 39ff70b4-7376-6fc3-0f15-2ce1824c7e8d 项目ID
page body number 1
page_size body number 1
keyword body string weij 筛选关键词

请求示例

{
    "tenant_code":"zjalpha",
    "project_id":"39ff70b4-7376-6fc3-0f15-2ce1824c7e8d",
    "keyword":"weij",
    "page":1,
    "page_size":1 
}

返回成功示例

{
    "errcode": 0,
    "errmsg": "请求成功",
    "data": {
        "total": 5,
        "list": [
            {
                "batch_id": "39ff80c7-d4a4-3a0b-27d9-c4d96e80ee11",
                "batch_name": "weij-批次5-api"
            }
        ]
    }
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 错误码:0 为正常
errmsg string 错误消息
data object 返回数据
data.total number 批次总数
data.list array 批次分页数据集
data.list.batch_id string 批次ID
data.list.batch_name string 批次名称

失败返回示例

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

返回参数说明(失败)

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

results matching ""

    No results matching ""