获取规则详情接口
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取规则详情接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li>URL:<code>/ruleEngine/ruleconfig/getRuleDetail</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST 表单</li>
</ul>
<p><strong> 请求参数:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
<th>示例</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">ruleId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>规则id</td>
<td>2095</td>
</tr>
</tbody>
</table>
<p><strong>响应示例:</strong></p>
<pre><code>{
"msg": "success",
"code": 0,
"data": {
"ruleConditionGroup": [
{
"id": 11109,
"ruleId": 2095,
"ruleCondition": [
{
"id": 32340,
"ruleId": 2095,
"conditionGroupId": 11109,
"varType": 3,
"ctable": " ",
"tableComment": "",
"ccolumn": "buy_position",
"columnComment": "[交易指标]买入持仓量",
"type": "double",
"cvalue": "5579",
"ruleIdLeft": 0,
"ruleIdLeftName": "",
"ruleIdRightName": "",
"ruleIdLeftStrategyName": "",
"ruleIdRightStrategyName": "",
"aliasLeft": "",
"aliasRight": "",
"formula": "",
"varTypeRight": 0,
"ctableRight": "",
"tableCommentRight": "",
"ccolumnRight": "",
"columnCommentRight": "",
"typeRight": "",
"cvalueRight": "",
"ruleIdRight": 0,
"missResult": "0",
"integral": 0,
"state": "10",
"reqExt": "",
"relation": 0,
"resultType": "",
"result": "",
"deleteFlag": 0
}
],
"relation": 0,
"state": "10",
"formula": "single_value",
"missScore": 0,
"deleteFlag": 0
}
],
"ruleEngineDecisionInfo": [],
"ruleOperateInfo": [
{
"id": 95,
"ruleId": 2095,
"type": 0,
"insertType": "", // 废弃字段:插入类型[quota:额度结果插入]
"fieldId": "160", // 废弃字段:操作变量字段ID
"varTypeLeft": 6, // 新增字段:左变量类型[1:常量,2:环境数据,3:业务数据,4:用户数据,5:场景数据,6:规则结果]
"cvalueLeft": "2079", // 新增字段:左变量结果值(常量值/规则ID)
"varTypeRight": 6,
"cvalueRight": "2079",
"sequence": 0,
"paramKey": "2", // 新增字段,接口参数Key
"paramName": "参数名称" // 新增字段,接口参数名称
}
],
"strategy": null,
"childRuleConfigList": [],
"id": 2095,
"name": "测试规则",
"type": "60",
"strategyId": 114,
"ruleLogId": 4262,
"ratio": 0,
"ratioDayCount": 0,
"ruleCode": "",
"isDecision": 0,
"hitType": 0,
"hitResult": "0",
"parentId": 0,
"parentOptType": "",
"configCount": 1,
"sequence": 0,
"reqExt": "",
"state": "10",
"deleteFlag": 0
}
} </code></pre>