风控后台


衍生指标计算-指标下拉接口-新

<p><strong>简要描述:</strong> </p> <ul> <li>根据指标类型查询指标下拉列表接口 @李文珂</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/indicator/indicatorbasicconfig/indicatorDropdownByIndicatorTypeAndMainAttrType</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET</li> <li>请求携带token</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> </tr> </thead> <tbody> <tr> <td style="text-align: left;">indicatorType</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Integer</td> <td>指标类型[10:主动指标/20:被动指标/30:其它指标/40:关系指标/50:定时指标]</td> </tr> <tr> <td style="text-align: left;">mainAttrType</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>主属性类型[consumer_no:用户id,phone:手机号,id_no:身份证,partner_code:合作方,dev_id:设备id,product_code:产品,app_code:应用,ip_addr:ip,scene:场景,event_code:事件,bssid:bssid]</td> </tr> </tbody> </table> <p><strong>备注:mainAttrType多个类型逗号分隔:比如prodouct_code,app_code</strong></p> <p><strong>返回示例</strong></p> <pre><code>{ "msg": "success", "code": 0, "data": [ { "id": 3, "name": "测试111下下", "code": "name", "type": 30, "range": 10, "dimensions": 20, "dimensionsValue": "20", "mainAttrType": null, "mainAttrName": null, "mainAttr": "consumerNo", "triggerType": null, "triggerValue": null, "outputType": null, "resultType": "string", "desc": "描述11111", "remark": "333", "hitType": null, "dateType": null, "dateHour": null, "dateField": null, "sequence": 0, "isFinish": 0, "isPreheat": 1, "initValue": 10, "calcType": null, "state": 10, "addUser": 273, "addIp": "127.0.0.1", "addTime": "2018-08-31 15:33:16", "updateUser": 0, "updateIp": "127.0.0.1", "updateTime": "2018-09-06 19:08:11", "deleteFlag": 0 }, { "id": 5, "name": "修改5", "code": "amount", "type": 30, "range": 20, "dimensions": 20, "dimensionsValue": "arc_user", "mainAttrType": null, "mainAttrName": null, "mainAttr": "comsumerNo", "triggerType": 10, "triggerValue": null, "outputType": null, "resultType": "string", "desc": "描述", "remark": "修改5", "hitType": null, "dateType": null, "dateHour": null, "dateField": null, "sequence": 0, "isFinish": 0, "isPreheat": 1, "initValue": 10, "calcType": null, "state": 10, "addUser": 0, "addIp": "", "addTime": "2018-09-04 15:29:52", "updateUser": 0, "updateIp": "127.0.0.1", "updateTime": "2018-09-05 11:19:37", "deleteFlag": 0 }, { "id": 6, "name": "修改6", "code": "22", "type": 30, "range": 20, "dimensions": 20, "dimensionsValue": "arc_user", "mainAttrType": null, "mainAttrName": null, "mainAttr": "comsumerNo", "triggerType": 10, "triggerValue": null, "outputType": null, "resultType": "string", "desc": "描述", "remark": "修改6", "hitType": null, "dateType": null, "dateHour": null, "dateField": null, "sequence": 0, "isFinish": 0, "isPreheat": 1, "initValue": 10, "calcType": null, "state": 10, "addUser": 0, "addIp": "", "addTime": "2018-09-04 15:31:52", "updateUser": 0, "updateIp": "127.0.0.1", "updateTime": "2018-09-05 11:19:12", "deleteFlag": 0 } ] }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">string</td> <td>提示信息</td> </tr> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>0:成功,500:异常</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">json</td> <td>指标数据,具体字段含义看指标提交接口</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML