劳务-获取劳务类型列表

更新时间:2022-11-03 15:31:07

接口说明

获取承包商列表:注意,不同类型返回的内容有所不同

使用接口前请先阅读下文,超链接文档 劳务接入指引文档 sign生成规则

基本信息

请求方式: GET

请求路径:

https://prod.open-api.mysre.cn/aiot/open/labour/type-enum-list

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string zjfunctest 租户code
type query string contractor 类型code,contractor承包商、job工种、user人员
third_code query string 第三方code 第三方code
sign query string 签名
timestamp query string 10位时间戳

请求示例

/aiot/open/labour/type-enum-list?type=contractor&tenant_code=zjfunctest

返回成功示例

{
  "errcode":0,
  "errmsg":"",
  "data":[
    {
      "id":"daf0b6be",
      "contractor_type_name":"建设单位",
      "contractor_type_remark":"建设单位"
    }
  ]
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 异常code
errmsg string 异常信息
data array 数据
data.id string 类型id
contractor_type_name string 类型名称
contractor_type_remark string 类型备注

失败返回示例

{
  "errcode": -1,
  "errmsg": "xxx 是必须的"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode string 错误code
errmsg string 错误信息

results matching ""

    No results matching ""