说明

  • 请求方式:POST
  • 接口地址:/api/collector/bindCollector

Request

参数名 数据类型 描述 是否必传
barCode String 采样器 code
productCode String 产品码
collectorTestPerson Object 检测人信息

collectorTestPerson

参数名 数据类型 描述 是否必传
nickName String 用户昵称
gender String 用户性别:male (男) / female (女)
birthday String 用户生日

yyyy-MM-dd | 否 | | nativePlace | String | 籍贯 | 否 | | nation | String | 民族 | 否 |

Headers

参数名 数据类型 描述 是否必传
token String 接口交互必须的参数和账户验证凭证

Response

参数名 数据类型 描述
code int 状态码(只有状态码是 0 时接口响应的数据是成功返回)
msg String 接口相应接口描述(只有状态描述是”OK”才是响应接口成 功,其他都是响应失败的文字描述)
result Object “success”表示绑定成功

接口请求的示例

Request

  1. {
  2. "barCode": "AA000000000001",
  3. "collectorTestPerson": {
  4. "birthday": "2020-03-18",
  5. "gender": "male",
  6. "nation": "汉族",
  7. "nativePlace": "中国",
  8. "nickName": "张三"
  9. },
  10. "productCode": "CAS"
  11. }

Response

  1. {
  2. "code": 0,
  3. "msg": "OK",
  4. "result": "success"
  5. }