You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

223 lines
8.3 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{
"type": "page",
"title": "新建账号配置",
"body": [
{
"title": "",
"actions": [
{
"label": "保存",
"type": "submit",
"level": "success"
}
],
"body": [
{
"type": "fieldSet",
"title": "基本配置",
"body": [
{
"type": "input-text",
"label": "账号名",
"name": "name",
"size": "md",
"required": true
},
{
"name": "sendChannel",
"label": "发送渠道",
"type": "radios",
"options": [
{
"label": "PUSH通知栏",
"value": "20"
},
{
"label": "短信",
"value": "30"
},
{
"label": "邮箱",
"value": "40"
},
{
"label": "微信服务号(模板消息)",
"value": "50"
},
{
"label": "微信小程序(订阅消息)",
"value": "60"
},
{
"label": "企业微信(应用消息)",
"value": "70"
},
{
"label": "企业微信(机器人)",
"value": "100"
},
{
"label": "钉钉群机器人",
"value": "80"
},
{
"label": "钉钉工作消息",
"value": "90"
},
{
"label": "飞书机器人",
"value": "110"
},
{
"label": "支付宝小程序",
"value": "120"
}
],
"required": true
},
{
"name": "accountConfig",
"type": "input-text",
"label": "账号配置",
"required": true,
"mode": "",
"size": "lg",
"clearValueOnHidden": false
}
],
"bodyClassName": "r-3x w-full text-lg r font-bold",
"className": ""
},
{
"type": "fieldSet",
"title": "渠道样例信息",
"body": [
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==10",
"mode": "normal",
"inline": true,
"label": "IM账号样例"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==30",
"mode": "normal",
"inline": true,
"label": "腾讯云账号样例:{\"url\":\"sms.tencentcloudapi.com\",\"region\":\"ap-guangzhou\",\"secretId\":\"AKIDhDxxxxxxxx1WljQq\",\"secretKey\":\"B4hwww39yxxxrrrrgxyi\",\"smsSdkAppId\":\"1423123125\",\"templateId\":\"1182097\",\"signName\":\"Java3y公众号\",\"supplierId\":10,\"supplierName\":\"腾讯云\",\"scriptName\":\"TencentSmsScript\"}</br></br> 云片账号配置样例:{\"url\":\"https://sms.yunpian.com/v2/sms/tpl_batch_send.json\",\"apikey\":\"caffff8234234231b5cd7\",\"tpl_id\":\"523333332\",\"supplierId\":20,\"supplierName\":\"云片\",\"scriptName\":\"YunPianSmsScript\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==20",
"mode": "normal",
"inline": true,
"label": "个推push账号样例{\"appId\":\"23423423\",\"appKey\":\"234234234\",\"masterSecret\":\"2342342342342\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==40",
"mode": "normal",
"inline": true,
"label": "QQ邮箱账号样例{\"host\":\"smtp.qq.com\",\"port\":465,\"user\":\"23423432@qq.com\",\"pass\":\"234324324\",\"from\":\"123123@qq.com\",\"starttlsEnable\":\"true\",\"auth\":true,\"sslEnable\":true} </br></br> 163邮箱配置账号样例{\"host\":\"smtp.163.com\",\"port\":465,\"user\":\"23423423@163.com\",\"pass\":\"234234324\",\"from\":\"112312312@163.com\",\"starttlsEnable\":\"false\",\"auth\":true,\"sslEnable\":true}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==50",
"mode": "normal",
"inline": true,
"label": "服务号账号样例:{\"appId\":\"wx27f83ca10e06b325\",\"secret\":\"203299484df873a18621d076db46fa99\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==60",
"mode": "normal",
"inline": true,
"label": "小程序账号样例:{\"appId\":\"wx993a5323432ba86\",\"appSecret\":\"7ffffcc59e1fsdafsdafsdc0650ac1ada7\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==70",
"mode": "normal",
"inline": true,
"label": "企业微信(应用消息)账号样例:{\"corpId\":\"23423423\",\"corpSecret\":\"-234324234\",\"agentId\":1000002,\"token\":\"234234\",\"aesKey\":\"23423423\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==100",
"mode": "normal",
"inline": true,
"label": "企业微信(机器人)消息样例:{\"webhook\":\"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5699eac1-b073-47da-9e97-xxxxxxxx\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==80",
"mode": "normal",
"inline": true,
"label": "钉钉群机器人样例:{\"secret\":\"234324324324\",\"webhook\":\"https://oapi.dingtalk.com/robot/send?access_token=8d03b68d081f732343243242343247328b0c3003d164715d2c6c6e56\"}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==90",
"mode": "normal",
"inline": true,
"label": "钉钉工作消息样例:{\n \"appKey\": \"23423423\",\n \"appSecret\": \"tQpvmkR863dYcuKDVfM23432432432423Nlx_fYLLLlpPJWHvWKbTu\",\n \"agentId\": \"1523423423242\"\n}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==110",
"mode": "normal",
"inline": true,
"label": "飞书机器人消息样例:{\n \"webhook\": \"https://open.feishu.cn/open-apis/bot/v2/hook/xxxx-9aa3-xxx-9239-xxxxxx\"\n}"
},
{
"type": "static",
"name": "id",
"visibleOn": "this.sendChannel ==120",
"mode": "normal",
"inline": true,
"label": "支付宝小程序消息样例:{\"privateKey\":\"MIIEvQIBADANB......\",\"alipayPublicKey\":\"MIIBIjANBg...\",\"appId\":\"2014********7148\",\"userTemplateId\":\"MDI4YzIxMDE2M2I5YTQzYjUxNWE4MjA4NmU1MTIyYmM=\",\"page\":\"page/component/index\"}"
}
]
}
],
"type": "form",
"mode": "horizontal",
"affixFooter": true,
"panelClassName": "Panel--default",
"bodyClassName": "text-lg",
"redirect": "/account/list?page=1",
"api": {
"url": "${ls:backend_url}/account/save",
"method": "post",
"data": {
"name": "${name}",
"sendChannel": "${sendChannel}",
"accountConfig": "${accountConfig}",
"creator": "${ls:openId}"
}
}
}
],
"toolbar": [
{
"type": "button",
"actionType": "link",
"link": "/account/list",
"label": "返回列表"
}
],
"messages": {},
"style": {},
"bodyClassName": "p-lg p-t-lg p-r-lg p-b-lg p-l-lg m-none m-l-lg m-b-lg m-r-lg m-t-lg m-lg b-5x b-dark r-3x text-dark bg-white w-full font-bold text-lg"
}