Authorization: Bearer ********************
{
"indexType": "2",
"desc": "测试自定义指标",
"operationList": [
{
"opType": "3",
"value": "25"
},
{
"opType": "1",
"value": "+"
},
{
"opType": "2",
"indexInfo": {
"fieldName": "debt_investment_par_statement",
"indexName": "A",
"statisticCaliber": "P5",
"indexYear": "2022",
"tableName": "li_enterprise_main_info",
"indexType": "1",
"desc": "A_2022"
}
},
{
"opType": "1",
"value": ")"
},
{
"opType": "1",
"value": "^"
},
{
"opType": "3",
"value": "2"
}
]
}
curl --location --request POST 'http://localhost:9999/api1/li-index/validateExpress' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"indexType": "2",
"desc": "测试自定义指标",
"operationList": [
{
"opType": "3",
"value": "25"
},
{
"opType": "1",
"value": "+"
},
{
"opType": "2",
"indexInfo": {
"fieldName": "debt_investment_par_statement",
"indexName": "A",
"statisticCaliber": "P5",
"indexYear": "2022",
"tableName": "li_enterprise_main_info",
"indexType": "1",
"desc": "A_2022"
}
},
{
"opType": "1",
"value": ")"
},
{
"opType": "1",
"value": "^"
},
{
"opType": "3",
"value": "2"
}
]
}'
{"code":"-1","msg":" 1:65: Unexpected token: ')'. Expected an expression.","data":null}