文档
测试

模型规则条件配置参数

GET
http://127.0.0.1:8190/model/getModelRoleConditionConfigParam

响应参数

参数名
类型
描述
必填
code
Integer
200 成功,其余失败
必填
msg
String
操作描述
必填
data
json
数据对象
必填
selectTimeTypes
List
选择时间类型
必填
value
Integer
时间类型编码 1、2、3、4、5、6、7
必填
label
String
时间类型 过去时间、未来时间、过去+未来时间、实时、具体时间、相同、同期
必填
timeUnits
List
时间单位
必填
value
Integer
时间单位编码 1、2、3、4、5、6
必填
label
String
时间单位描述 小时、天、周、月、季度、年
必填
tableNames
List
数据表
必填
value
String
表名
必填
label
String
中文表名
必填
tableFields
List
数据表字段
必填
tableName
String
表名
必填
tableFields
List
表字段集
必填
fieldName
String
字段名称
必填
fieldChineseName
String
字段中文名称
必填
fieldType
Integer
字段类型
必填
fieldLength
Integer
字段长度
必填
whetherNull
Integer
是否可为空 0 否 1 是
必填
fieldDescribe
String
字段说明
必填
type
Integer
类型 0 文本 1 非文本
必填
tableName
String
表名
必填
conditionTypes
List
条件类型
必填
value
Integer
条件类型编码 1、2
必填
label
String
条件类型描述 关系、运算
必填
conditionTypeTextRelationSymbols
List
条件类型文本关系符号
必填
value
Integer
1、2、3、4
必填
label
String
包含、不包含、等于、不等于
必填
conditionTypeNontextRelationSymbols
List
条件类型非文本关系符号
必填
value
Integer
5、6、7、8、9
必填
label
String
>、>=、=、<、<=
必填
conditionTypeOperationSymbols
List
条件类型运算符号
必填
value
Integer
10、11
必填
label
String
+ 、 -
必填
operationRelations
List
运算关系
必填
value
Integer
运算关系编码 1 、2
必填
label
String
运算关系描述 且、或
必填
operationDimensions
List
运算维度
必填
value
Integer
运算维度编码 1 、2
必填
label
String
运算维度描述 / 、 数据量
必填
continuousTrends
List
连续时间趋势 1 上升 2 降低 3 /
必填
value
Integer
必填
label
String
必填

说明 / 示例

{ "msg": "操作成功", "code": 200, "data": { "selectTimeTypes": [ { "key": 1, "value": "过去时间" }, { "key": 2, "value": "未来时间" }, { "key": 3, "value": "过去+未来时间" }, { "key": 4, "value": "实时" }, { "key": 5, "value": "具体时间" }, { "key": 6, "value": "相同" }, { "key": 7, "value": "同期" } ], "timeUnits": [ { "key": 1, "value": "小时" }, { "key": 2, "value": "天" }, { "key": 3, "value": "周" }, { "key": 4, "value": "月" }, { "key": 5, "value": "季度" }, { "key": 6, "value": "年" } ], "tableNames": [ { "key": "test_123", "value": "测试" }, { "key": "score", "value": "成绩表" } ], "tableFields": [ { "tableName": "test_123", "tableFields": [ { "fieldName": "user_name", "fieldChineseName": "用户姓名", "fieldType": 14, "fieldLength": 20, "whetherNull": 0, "fieldDescribe": null, "type": 0, "tableName": "test_123" }, { "fieldName": "age", "fieldChineseName": "用户年龄", "fieldType": 8, "fieldLength": 11, "whetherNull": 1, "fieldDescribe": null, "type": 1, "tableName": "test_123" }, { "fieldName": "addr", "fieldChineseName": "地址", "fieldType": 14, "fieldLength": 100, "whetherNull": 1, "fieldDescribe": null, "type": 0, "tableName": "test_123" }, { "fieldName": "create_time", "fieldChineseName": "创建时间", "fieldType": 4, "fieldLength": 0, "whetherNull": 1, "fieldDescribe": "时间", "type": 1, "tableName": "test_123" }, { "fieldName": "table_total", "fieldChineseName": "表数据量", "fieldType": 8, "fieldLength": 11, "whetherNull": 1, "fieldDescribe": "表的数据总量", "type": 1, "tableName": "test_123" } ] }, { "tableName": "score", "tableFields": [ { "fieldName": "name", "fieldChineseName": "姓名", "fieldType": 14, "fieldLength": 50, "whetherNull": 0, "fieldDescribe": "学生姓名", "type": 0, "tableName": "score" }, { "fieldName": "score", "fieldChineseName": "分数", "fieldType": 6, "fieldLength": 8, "whetherNull": 1, "fieldDescribe": "学生考试成绩", "type": 1, "tableName": "score" }, { "fieldName": "age", "fieldChineseName": "年龄", "fieldType": 8, "fieldLength": 11, "whetherNull": 1, "fieldDescribe": "学生年龄", "type": 1, "tableName": "score" }, { "fieldName": "score_create_time", "fieldChineseName": "分数创建时间", "fieldType": 4, "fieldLength": 0, "whetherNull": 1, "fieldDescribe": "时间", "type": 1, "tableName": "score" }, { "fieldName": "table_total", "fieldChineseName": "表数据量", "fieldType": 8, "fieldLength": 11, "whetherNull": 1, "fieldDescribe": "表的数据总量", "type": 1, "tableName": "score" } ] } ], "conditionTypes": [ { "key": 1, "value": "关系" }, { "key": 2, "value": "运算" } ], "conditionTypeTextRelationSymbols": [ { "key": 1, "value": "包含" }, { "key": 2, "value": "不包含" }, { "key": 3, "value": "等于" }, { "key": 4, "value": "不等于" } ], "conditionTypeNontextRelationSymbols": [ { "key": 5, "value": ">" }, { "key": 6, "value": ">=" }, { "key": 7, "value": "=" }, { "key": 8, "value": "<" }, { "key": 9, "value": "<=" } ], "conditionTypeOperationSymbols": [ { "key": 10, "value": "+" }, { "key": 11, "value": "-" } ], "operationRelations": [ { "key": 1, "value": "且" }, { "key": 2, "value": "或" } ], "operationDimensions": [ { "key": 1, "value": "/" }, { "key": 2, "value": "数据量" } ] } }