版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

外部接口请求方法请求参数返回结构请求示例
获取鉴权条件GET-


代码块
languagejs
themeMidnight
linenumberstrue
{
	"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


字段名称字段类型是否必传字段说明
userIdstringtrue当前用户id。透传到客户侧的参数
componentIdstringfalse
当前作品下玩法组件ID。透传到客户侧的参数
appIdstringfalse兔展作品ID。透传到客户侧的参数,该值是否一定有值和作品(玩法)的保存顺序有关
authScopenumbertrue

默认值 0。

0:玩法资格配置,

1:作品访问限制资格配置,

2:流程策略资格配置

externalConfigIdstringfalse外部配置id(传空代表新增配置,不为空代表修改配置)。也即该接口响应返回的configId字段值
treeNodesObjecttrue
└─ labelstringtrue名称
└─ valuestringtrue
└─ childrenObjectfalse子集
└─ typestringfalse文本 text,数值 number,多选 select,单选 checkbox,区间 area ,级联 cascader
sceneTypestringfalse玩法类型
externalConfigOperatorstringfalse外部参数运算符,选项有“ALL”和“IN”,分别对应满足全部与其中之一。默认值 IN
externalConfigValueslist<string>false外部条件值



代码块
languagejs
themeMidnight
linenumberstrue
{
	"code:" 200,
	"data": {
		// 外部接口返回的配置id
		"configId": "aaa-bbb-ccc"
	}
}



https://editor.test.rabbitpre.com/api/editor/proxy/thirddata/api/xxx/cms/saveNotice


入参:

代码块
languagejs
themeMidnight
{
  "settingData": [
    {
      "label": "职业文本",
      "type": "text",
      "name": "professiontext",
      "value": "文本的值"
    },
    {
      "label": "用户身份数值",
      "type": "number",
      "name": "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
}










...