- 登录
- 公司查询接口
- 模板
- 基础数据
- 任务
- 过往合作
- 其他
- 上市公司
- 人社线
校验自定义指标接口
开发中
POST
/li-index/validateExpress
/li-index/validateExpress
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
indexType
string
必需
desc
string
必需
operationList
array [object {3}]
必需
opType
string
必需
value
string
必需
indexInfo
object
可选
示例
{
"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"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:9999/api1/li-index/validateExpress' \
--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"
}
]
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
null
必需
示例
{
"code": "-1",
"msg": " 1:65: Unexpected token: ')'. Expected an expression.",
"data": null
}
修改于 2022-10-18 07:44:12