{ "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": "IM站内信", "value": "10" }, { "label": "PUSH通知栏", "value": "20" }, { "label": "短信", "value": "30" }, { "label": "邮箱", "value": "40" }, { "label": "服务号", "value": "50" }, { "label": "小程序", "value": "60" }, { "label": "企业微信", "value": "70" }, { "label": "钉钉群机器人", "value": "80" }, { "label": "钉钉工作消息", "value": "90" }, { "label": "企业微信机器人", "value": "100" }, { "label": "飞书机器人", "value": "110" } ], "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\"}

云片账号配置样例:{\"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}

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 ==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 ==100", "mode": "normal", "inline": true, "label": "企业微信机器人消息样例:" }, { "type": "static", "name": "id", "visibleOn": "this.sendChannel ==110", "mode": "normal", "inline": true, "label": "飞书机器人消息样例:{\n \"webhook\": \"https://open.feishu.cn/open-apis/bot/v2/hook/c24b09ef-9aa3-4aad-9239-a7e05fcaf6ec\"\n}" } ] } ], "type": "form", "mode": "horizontal", "affixFooter": true, "panelClassName": "Panel--default", "bodyClassName": "text-lg", "redirect": "/crud/account/list?page=1", "api": { "url": "http://localhost:8080/account/save", "method": "post", "data": { "name": "${name}", "sendChannel": "${sendChannel}", "accountConfig": "${accountConfig}" } } } ], "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" }