{
"id": 1,
"weight": [0],
"score": [0],
"children": [
{
"id": 2,
"weight": [0],
"score": [0],
"children": [
{"id": 5, "weight": [0.3], "score": [0.3], "children": null},
{"id": 6, "weight": [0.4], "score": [0.7], "children": null}
]
},
{
"id": 3,
"weight": [0],
"score": [0],
"children": [
{"id": 7, "weight": [0.5], "score": [0.7], "children": null}
]
},
{
"id": 4,
"weight": [0.2],
"score": [0.7],
"children": null
}
]
}
curl --location --request POST 'http://192.168.11.46:13000/v1/engineering_safety_evaluation/fuzzy_comprehensive_evaluation' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"weight": [0],
"score": [0],
"children": [
{
"id": 2,
"weight": [0],
"score": [0],
"children": [
{"id": 5, "weight": [0.3], "score": [0.3], "children": null},
{"id": 6, "weight": [0.4], "score": [0.7], "children": null}
]
},
{
"id": 3,
"weight": [0],
"score": [0],
"children": [
{"id": 7, "weight": [0.5], "score": [0.7], "children": null}
]
},
{
"id": 4,
"weight": [0.2],
"score": [0.7],
"children": null
}
]
}'
{
"code": 200,
"msg": "评估结果计算成功!",
"data": {
"id": 1,
"weight": [
0
],
"score": [
0.13999999999999999
],
"children": [
{
"id": 2,
"weight": [
0
],
"score": [
0.37
],
"children": [
{
"id": 5,
"weight": [
0.3
],
"score": [
0.3
],
"children": null
},
{
"id": 6,
"weight": [
0.4
],
"score": [
0.7
],
"children": null
}
]
},
{
"id": 3,
"weight": [
0
],
"score": [
0.35
],
"children": [
{
"id": 7,
"weight": [
0.5
],
"score": [
0.7
],
"children": null
}
]
},
{
"id": 4,
"weight": [
0.2
],
"score": [
0.7
],
"children": null
}
]
}
}