{
"basicProperties": [
{
"name": "业务属性名称",
"identifier": "业务属性标识",
"dataType": "LONG",
"value": "10",
"unit": "m"
}
],
"events": [
{
"name": "物模型事件",
"identifier": "物模型事件标识",
"desc": "物模型事件描述",
"enableParamsVerify": true,
"eventInfos": [
{
"name": "事件1",
"identifier": "事件标识1",
"customId": 1720401598748,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "事件参数2",
"identifier": "事件参数标识2",
"customId": 1720401620871,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "dnuy7sg9ke8lycapgzh"
}
],
"serves": [
{
"name": "物模型服务",
"identifier": "物模型服务标识",
"desc": "物模型服务描述",
"inputs": [
{
"name": "物模型参数1",
"identifier": "物模型参数2",
"customId": 1720401453065,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "物模型参数2",
"identifier": "物模型参数表示2",
"customId": 1720401486029,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"outputs": [
{
"name": "物模型输出参数1",
"identifier": "物模型输出参数标识1",
"customId": 1720401522282,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "d6rlgpewe75lycandgx"
}
],
"properties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {},
"precision": 0,
"coefficient": 0
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"logicProperties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {}
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"propertyGroups": [
{
"id": "QOPKYBYCY2k",
"identifier": "t1",
"productId": "CNGVwLM53Ps",
"name": "测试",
"sort": 1,
"type": "BasicProperty",
"parentId": "",
"propertyIds": null
},
{
"id": "h8AFijvdHip",
"identifier": "csx",
"productId": "CNGVwLM53Ps",
"name": "测试勋",
"sort": 3,
"type": "BasicProperty",
"parentId": "479Uu4_Imwj",
"propertyIds": [
"threshold",
"refHydraulic_0"
]
}
],
"serverMappings": [
{
"id": "21LdAG23kz-",
"mappingId": "double",
"productId": "gjyzb0qOmEU",
"desc": "",
"mappingType": "service",
"value": "5",
"identifier": "",
"serviceId": "YK_DOUBLE",
"param": [
{
"identifier": "value",
"value": "10",
"default": false,
"dataType": "",
"name": ""
}
]
}
],
"name": "无人车2",
"version": "V1.0",
"productId": "3icrjY2nOrL"
}
curl --location --request POST 'https://iot-dev.utapp.cn/api/productVersion/saveProductVersion' \
--header 'Authorization-Type;' \
--header 'X-Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"basicProperties": [
{
"name": "业务属性名称",
"identifier": "业务属性标识",
"dataType": "LONG",
"value": "10",
"unit": "m"
}
],
"events": [
{
"name": "物模型事件",
"identifier": "物模型事件标识",
"desc": "物模型事件描述",
"enableParamsVerify": true,
"eventInfos": [
{
"name": "事件1",
"identifier": "事件标识1",
"customId": 1720401598748,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "事件参数2",
"identifier": "事件参数标识2",
"customId": 1720401620871,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "dnuy7sg9ke8lycapgzh"
}
],
"serves": [
{
"name": "物模型服务",
"identifier": "物模型服务标识",
"desc": "物模型服务描述",
"inputs": [
{
"name": "物模型参数1",
"identifier": "物模型参数2",
"customId": 1720401453065,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
},
{
"name": "物模型参数2",
"identifier": "物模型参数表示2",
"customId": 1720401486029,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"outputs": [
{
"name": "物模型输出参数1",
"identifier": "物模型输出参数标识1",
"customId": 1720401522282,
"valueInfo": {
"unit": "",
"valueType": "LONG",
"trueValue": "true",
"elementType": {},
"elements": {},
"trueText": "是",
"falseValue": "false",
"properties": [],
"falseText": "否",
"arrayItemType": "LONG",
"coefficient": 1
}
}
],
"customId": "d6rlgpewe75lycandgx"
}
],
"properties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {},
"precision": 0,
"coefficient": 0
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"logicProperties": [
{
"identifier": "物模型属性标识",
"name": "物模型属性",
"desc": "物模型属性描述",
"valueInfo": {
"valueType": "LONG",
"unit": "m",
"elements": {}
},
"accessMode": "READ_ONLY",
"store": true,
"filter": true,
"storeRule": {},
"filterRule": {
"ignoreDuplicate": true,
"deadZone": 1,
"regions": [
{
"left": 1,
"right": 100
},
{
"left": 200,
"right": 300
}
]
}
}
],
"propertyGroups": [
{
"id": "QOPKYBYCY2k",
"identifier": "t1",
"productId": "CNGVwLM53Ps",
"name": "测试",
"sort": 1,
"type": "BasicProperty",
"parentId": "",
"propertyIds": null
},
{
"id": "h8AFijvdHip",
"identifier": "csx",
"productId": "CNGVwLM53Ps",
"name": "测试勋",
"sort": 3,
"type": "BasicProperty",
"parentId": "479Uu4_Imwj",
"propertyIds": [
"threshold",
"refHydraulic_0"
]
}
],
"serverMappings": [
{
"id": "21LdAG23kz-",
"mappingId": "double",
"productId": "gjyzb0qOmEU",
"desc": "",
"mappingType": "service",
"value": "5",
"identifier": "",
"serviceId": "YK_DOUBLE",
"param": [
{
"identifier": "value",
"value": "10",
"default": false,
"dataType": "",
"name": ""
}
]
}
],
"name": "无人车2",
"version": "V1.0",
"productId": "3icrjY2nOrL"
}'
{"code":0,"success":true,"message":"操作成功","data":"FQwBv7QQa6P"}