{
"product_id":1,
"name":"产品名称",
"table_name":"物模型标识符",
"network_type":1,
"type":1,
"desc":"",
"code":"",
}curl --location 'http://127.0.0.1:8001/api/product_attribute/export?product_id=1' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MSwiVXNlcm5hbWUiOiJ0ZXN0In0.zxlvDcK7DIIzrlM92HmZvXDfTMwg-uZyK5aOvr4X4KE' \
--header 'Content-Type: application/json' \
--data '{
"product_id":1,
"name":"产品名称",
"table_name":"物模型标识符",
"network_type":1,
"type":1,
"desc":"",
"code":"",
}'{
"code": 200,
"message": "导出成功",
"data": {
"json": {
"version": "1.0",
"product_name": "电表",
"product_code": "equip_emeter",
"services": [
{
"product_id": 1,
"type": 3,
"name": "a相电流",
"code": "Ia",
"event_type": 1,
"data_type": "int",
"is_increment_value": 1,
"service_setting": {
"input_params": [
{
"name": "参数名称",
"code": "参数标识符",
"data_type": "int",
"attribute_setting": {
"min_value": 1,
"max_value": 100
}
}
],
"output_params": [
{
"name": "参数名称",
"code": "参数标识符",
"data_type": "int",
"attribute_setting": {
"min_value": 1,
"max_value": 100
}
}
]
}
}
],
"events": [
{
"product_id": 1,
"type": 1,
"readable_type": 1,
"name": "事件上报",
"code": "A",
"unit": "单位",
"data_type": "int",
"attribute_setting": {
"max_length": 255
}
}
],
"static": [
{
"product_id": 1,
"type": 3,
"name": "a相电流",
"code": "Ia",
"event_type": 1,
"data_type": "int",
"service_setting": {
"product_id": 1,
"type": 1,
"readable_type": 1,
"name": "a相电流",
"code": "Ia",
"unit": "单位",
"data_type": "int",
"attribute_setting": {
"min_value": 1,
"max_value": 100
}
}
}
],
"properties": [
{
"product_id": 1,
"type": 1,
"readable_type": 1,
"name": "a相电流",
"code": "Ia",
"unit": "单位",
"data_type": "int",
"attribute_setting": {
"min_value": 1,
"max_value": 100
}
}
]
}
}
}