获取鉴权条件 | GET | - |
代码块 |
---|
language | js |
---|
linenumbers | true |
---|
collapse | true |
---|
| {
"code": "200",
"msg": "ok",
"data": [
{
"label": "范围",
"type": "area",
"value": "",
"children": [
{
"value": "80"
},
{
"value": "100"
}
]
},
{
"label": "性别",
"type": "checkbox",
"value": "",
"children": [
{
"label": "男",
"value": "1"
},
{
"label": "女",
"value": "2"
}
]
},
{
"label": "部门",
"value": "",
"type": "select",
"children": [
{
"label": "A部门",
"value": "a"
},
{
"label": "B部门",
"value": "b"
},
{
"label": "C部门",
"value": "c"
}
]
},
{
"label": "年龄",
"type": "number",
"value": "18",
"children": []
},
{
"label": "分类",
"type": "cascader",
"value": "",
"children": [
{
"label": "项目分组",
"value": "project_group",
"children": [
{
"label": "新客户",
"value": "1"
},
{
"label": "未成交老客户",
"value": "2"
}
]
},
{
"label": "经纪人分组",
"value": "broker_group",
"children": [
{
"label": "自由合伙人",
"value": "9004"
},
{
"label": "代理公司",
"value": "9003"
}
]
}
]
}
]
} |
参数说明 label:标签名称 value:标签值 type:文本 text,数值 number,多选 select,单选 checkbox,区间 area ,级联 cascader children:子集(只有在级联、多选、单选、区间类型时才不为空) | https://editor.test.rabbitpre.com/api/editor/proxy/thirddata/api/xxx/cms/getAuthConditions
|
保存通知接口 | POST |
字段名称 | 字段类型 | 是否必传 | 字段说明 |
---|
userId | string | true | 当前用户id。透传到客户侧的参数 | componentId | string | false
| 当前作品下玩法组件ID。透传到客户侧的参数 | appId | string | false | 兔展作品ID。透传到客户侧的参数,该值是否一定有值和作品(玩法)的保存顺序有关 | authScope | number | true | 默认值 0。 0:玩法资格配置, 1:作品访问限制资格配置, 2:流程策略资格配置 | externalConfigId | string | false | 外部配置id(传空代表新增配置,不为空代表修改配置)。也即该接口响应返回的configId字段值 | treeNodes | Object | true |
| └─ label | string | true | 名称 | └─ value | string | true | 值 | └─ children | Object | false | 子集 | └─ type | string | false | 文本 text,数值 number,多选 select,单选 checkbox,区间 area ,级联 cascader | sceneType | string | false | 玩法类型 | externalConfigOperator | string | false | 外部参数运算符,选项有“ALL”和“IN”,分别对应满足全部与其中之一。默认值 IN | externalConfigValues | list<string> | false | 外部条件值 |
|
代码块 |
---|
| {
"code:" 200,
"data": {
// 外部接口返回的配置id
"configId": "aaa-bbb-ccc"
}
} |
| https://editor.test.rabbitpre.com/api/editor/proxy/thirddata/api/xxx/cms/saveNotice
入参: { "treeNodes": [ {
代码块 |
---|
| {
"settingData": [
{
"label": " |
经纪人分组 "valuebroker_group "typeselect "children": [ {
"value": "文本的值"
},
{
"label": " |
公务员或企事业单位人员 "value7000661 "type "select", "children": [] } ] } ], "externalConfigId": "aaa-bbb-ccc", "userId": "63fe7339-f4a5-412a-9676-1c15a2ffdecf", "componentId": "93e0d4e1-e8e6-4451-88a4-355585d4d28f", "appId": "63fe7339-2wed-trfg-9676-1c15a2ffdecf", "authScope": 0 , "sceneType": "Award"
"userFlagNumber",
"operator": "EQ",
"value": "9527"
},
{
"label": "性别",
"type": "select",
"name": "gender",
"operator": "IN",
"value": [
"1"
]
},
{
"label": "是否新客户",
"type": "checkbox",
"name": "isCustomer",
"value": "1"
},
{
"label": "人生阶段",
"type": "select",
"name": "lifeStage",
"operator": "IN",
"value": [
"1",
"2",
"3",
"4"
]
},
{
"label": "城市",
"type": "cascader",
"name": "city",
"operator": "IN",
"value": [
{
"label": "北京市",
"value": "北京市",
"type": null,
"children": [
{
"label": "北京市",
"value": "北京市",
"type": null,
"children": null
}
]
},
{
"label": "天津市",
"value": "天津市",
"type": null,
"children": [
{
"label": "天津市",
"value": "天津市",
"type": null,
"children": null
}
]
}
]
}
],
"externalConfigId": "",
"userId": "2a40a6c6-7379-4961-9088-cb9a071f3a55",
"componentId": "31bc2f36-c5de-4c34-adf6-c967a92561b8",
"sceneType": "Tzappid",
"appId": "31bc2f36-c5de-4c34-adf6-c967a92561b8",
"authScope": 1
} |
|