1. 接口名称
有证链数据录入(批量)
2. 接口背景
有证链数据录入,适合于机构系统认证完成后将多个产品的全部认证属性信息传输录入有证链系统
数据录入的属性值必须是包括列表所有必选值并且值内容满足对应的值内容
数据录入的站点必须是已经配置完成的站点。
3. 请求标识
call.batchAddCertChain
4. 请求参数
| 参数 | 类型 | 是否必选 | 描述 |
|---|---|---|---|
| timestamp | int | 是 | 以秒为单位的UnixTimestamp时间戳 |
| certs | Cert[] | 是 | 证书数据列表,Cert结构如下 |
| pinyin | string | 否 | 特定情况下的字段(值需联系相应开发人员) |
| receiptNo | string | 否 | 收检单号 |
type Cert struct{
certNo string//证书编号
certType int //证书类型,查询证书类型接口对应的certTypeId
organizationId int //站点id
pics []string //图片列表
key_123 string //红色,获取证书属性接口对应的kwd字段
key_124 string //17g,获取证书属性接口对应的kwd字段
}
5. 请求示例
{
"timestamp":1577686666,
"pinyin":"wpt",
"receiptNo": "wpt123",
"certs":[
{
"certNo":"123413434",
"certType":2,
"organizationId":1,
"key_124":"白色",
"key_123":"玉石",
"pics":[
"http://www.test.com/1.jpg",
"http://www.test.com/2.jpg"
]
},
{
"certNo":"123413435",
"certType":2,
"organizationId":1,
"key_124":"白色",
"key_123":"玉石",
"pics":[
"http://www.test.com/3.jpg",
"http://www.test.com/4.jpg"
]
},
]
}
6. 响应参数
| 参数 | 类型 | 是否必选 | 描述 |
|---|---|---|---|
| newData | CertResp | 是 | 新增的数据,CertResp结构如下 |
| editData | CertResp | 是 | 更新的数据 |
| allData | CertResp | 是 | 所有数据 |
type CertResp map[string]string//map[证书编辑]二维码地址
7. 响应示例
{
"code": 0,
"msg": "success",
"data": {
"newData":
{
"123413434":"http://z.wpt.la/2/1/123413434"
}
,
"editData"{
"123413435":"http://z.wpt.la/2/1/123413435"
}
,
"allData":{
{
"123413434":"http://z.wpt.la/2/1/123413434",
"123413435":"http://z.wpt.la/2/1/123413435"
}
}
}
}