Skip to content

健康宝(码)上传

接口地址

SERVICE-ADDRESS/labor/epidemic/health/add

方法:post

参数说明

header头部参数说明

参数 类型 是否必须 说明
appid String 唯一凭证
sign String 签名

param参数说明

参数 类型 是否必须 说明
deviceCode string 设备code
workerId long 工人id
updateDate string 健康码更新时间,示例:2021-08-01
healthColor string 健康码颜色,0:红色,1:绿色 ,2:黄色
healthPhoto string 健康码照片(上传照片后返回的key)
ts long 时间戳,默认值为当前时间戳
inOut int 进出方向,0:出,1:进
open int 是否开门,0:不开,1:开
scanType int 扫描类型
temperature double 工人体温,无体温填充0。默认值0
tripCode byte 行程码,苏康码字段,0:今日未核验,1:14天内未去过中高风险地区所在城市,2:14天内去过中高风险地区所在城市(不表示实际到访过这些中高风险地区)
generatedBy byte 生成出处,1:劳务,2:武汉卫健委接口,3:国康码,4:苏康码

请求数据示例

{
  "updateDate": "2021-08-26",
  "healthColor": "0",
  "workerId": 5110184,
  "deviceCode": "04201812002065",
  "healthPhoto": "worker/246798218891776/video/b4443422-f128-4813-82e1-6a5cacce562b.jpg",
  "ts": 1630098202000,
  "inOut": 1,
  "open": 2,
  "temperature": 0.5,
  "tripCode": 0,
  "generatedBy": 3
}

返回数据示例

{
  "success": true,
  "code": null,
  "message": null,
  "data": null
}

返回字段说明

字段名称 字段说明 字段格式 备注
success 是否成功 Boolean
code 响应码 int
message 错误消息 String
data 返回数据 Object