{
"table_name":"communication",
"type":1,
"readable_type":2,
"name":"a相电流",
"code":"Ia",
"unit":"单位",
"data_type":"int",
"event_type":2,
"is_increment_value":2,
"attribute_setting":{
"min_value": 1,
"max_value": 100
},
"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
}
}
]
}
}curl --location 'http://127.0.0.1:8001/api/physical_model_attribute/create' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJJZCI6MSwiVXNlcm5hbWUiOiJ0ZXN0In0.zxlvDcK7DIIzrlM92HmZvXDfTMwg-uZyK5aOvr4X4KE' \
--header 'Content-Type: application/json' \
--data '{
"table_name":"communication",
"type":1,
"readable_type":2,
"name":"a相电流",
"code":"Ia",
"unit":"单位",
"data_type":"int",
"event_type":2,
"is_increment_value":2,
"attribute_setting":{
"min_value": 1,
"max_value": 100
},
"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
}
}
]
}
}'{
"code": 200,
"message": "新增成功",
"data": {}
}