1. 接口名称
有证链数据录入(单个)
2. 接口背景
有证链数据录入,适合于机构系统认证完成后将单个产品的全部认证属性信息传输录入有证链系统
数据录入的属性值必须是包括列表所有必选值并且值内容满足对应的值内容
数据录入的站点必须是已经配置完成的站点。
3. 请求标识
call.addCertChain
4. 请求参数
| 参数 | 类型 | 是否必选 | 描述 |
|---|---|---|---|
| timestamp | int | 是 | 以秒为单位的UnixTimestamp时间戳 |
| cert | Cert | 是 | 一条证书数据,结构如下 |
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,
"cert":{
"certNo":"123413434",
"certType":2,
"organizationId":1,
"key_124":"白色",
"key_123":"玉石",
"pics":[
"http://www.test.com/1.jpg",
"http://www.test.com/2.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"{}
,
"allData":{
{
"123413434":"http://z.wpt.la/2/1/123413434"
}
}
}
}