微信服务号登录

master
3y 3 years ago
parent 128ffd2ca9
commit 82e5e73d45

@ -4,7 +4,7 @@
"body": [
{
"type": "crud",
"api": "${ls:backend_url}/account/list",
"api": "${ls:backend_url}/account/list?creator=${ls:openId}",
"bodyClassName": "panel-default",
"name": "sample",
"columns": [

@ -68,6 +68,10 @@
{
"label": "飞书机器人",
"value": "110"
},
{
"label": "支付宝小程序",
"value": "120"
}
],
"required": true
@ -177,6 +181,14 @@
"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\"}"
}
]
}
@ -193,7 +205,8 @@
"data": {
"name": "${name}",
"sendChannel": "${sendChannel}",
"accountConfig": "${accountConfig}"
"accountConfig": "${accountConfig}",
"creator": "${ls:openId}"
}
}
}

@ -251,7 +251,7 @@
"type": "select",
"label": "服务号账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 50",
"clearValueOnHidden": false,
"required": true,
@ -329,7 +329,7 @@
"type": "select",
"label": "小程序账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 60",
"clearValueOnHidden": false,
"required": true,
@ -366,7 +366,7 @@
"type": "select",
"label": "飞书机器人",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=110",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=110&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 110",
"clearValueOnHidden": false,
"required": true,
@ -428,7 +428,7 @@
"type": "select",
"label": "推送账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=20",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=20&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 20",
"clearValueOnHidden": false,
"required": true,
@ -469,7 +469,7 @@
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=40",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=40&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
@ -499,7 +499,7 @@
"type": "select",
"label": "企业微信应用",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
@ -509,7 +509,7 @@
"type": "select",
"label": "钉钉群机器人",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=80",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=80&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 80",
"clearValueOnHidden": false,
"required": true,
@ -519,7 +519,7 @@
"type": "select",
"label": "钉钉应用",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,

@ -4,7 +4,7 @@
"body": [
{
"type": "crud",
"api": "${ls:backend_url}/messageTemplate/list?page=${page}&perPage=${perPage}",
"api": "${ls:backend_url}/messageTemplate/list?page=${page}&perPage=${perPage}&creator=${ls:openId}",
"bodyClassName": "panel-default",
"syncLocation": false,
"name": "sample",
@ -59,7 +59,6 @@
"label": "发送渠道",
"type": "mapping",
"map": {
"20": "PUSH通知栏",
"30": "短信",
"40": "邮箱",

@ -267,7 +267,7 @@
"type": "select",
"label": "发送账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=20",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=20&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 20",
"clearValueOnHidden": false,
"required": true,
@ -309,7 +309,7 @@
"type": "select",
"label": "服务号账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 50",
"clearValueOnHidden": false,
"required": true,
@ -389,7 +389,7 @@
"type": "select",
"label": "小程序账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 60",
"clearValueOnHidden": false,
"required": true,
@ -427,7 +427,7 @@
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=40",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=40&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
@ -457,7 +457,7 @@
"type": "select",
"label": "飞书机器人",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=110",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=110&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 110",
"clearValueOnHidden": false,
"required": true,
@ -519,7 +519,7 @@
"type": "select",
"label": "企业微信应用",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
@ -529,7 +529,7 @@
"type": "select",
"label": "钉钉群机器人",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=80",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=80&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 80",
"clearValueOnHidden": false,
"required": true,
@ -539,7 +539,7 @@
"type": "select",
"label": "钉钉应用",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,
@ -947,6 +947,7 @@
"name": "${name}",
"idType": "${idType}",
"msgType": "${msgType}",
"creator": "${ls:openId}",
"templateType": "${templateType}",
"expectPushTime": "${expectPushTime}",
"proposer": "${proposer}",

@ -240,7 +240,7 @@
"type": "select",
"label": "服务号账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 50",
"clearValueOnHidden": false,
"required": true,
@ -318,7 +318,7 @@
"type": "select",
"label": "小程序账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 60",
"clearValueOnHidden": false,
"required": true,
@ -356,7 +356,7 @@
"type": "select",
"label": "飞书机器人",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=110",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=110&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 110",
"clearValueOnHidden": false,
"required": true,
@ -418,7 +418,7 @@
"type": "select",
"label": "推送账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=20",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=20&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 20",
"clearValueOnHidden": false,
"required": true,
@ -460,7 +460,7 @@
"type": "select",
"label": "邮件账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=40",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=40&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 40",
"clearValueOnHidden": false,
"required": true,
@ -489,7 +489,7 @@
"type": "select",
"label": "企业微信应用",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
@ -500,7 +500,7 @@
"type": "select",
"label": "钉钉群机器人",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=80",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=80&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 80",
"clearValueOnHidden": false,
"required": true,
@ -510,7 +510,7 @@
"type": "select",
"label": "钉钉应用账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,

@ -30,7 +30,7 @@
"type": "select",
"label": "服务号账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=50&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 50",
"clearValueOnHidden": false,
"required": true,
@ -40,7 +40,7 @@
"type": "select",
"label": "小程序账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=60&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 60",
"clearValueOnHidden": false,
"required": true,
@ -50,7 +50,7 @@
"type": "select",
"label": "企业微信账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=70&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
@ -60,7 +60,7 @@
"type": "select",
"label": "钉钉工作消息账号",
"name": "sendAccount",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90",
"source": "${ls:backend_url}/account/queryByChannelType?channelType=90&creator=${ls:openId}",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,

@ -8,22 +8,6 @@
"url": "/",
"redirect": "/crud/list"
},
{
"label": "用户登录",
"children": [
{
"label": "用户登录",
"icon": "fa fa-cube",
"children": [
{
"url": "/user/login",
"label": "用户登录",
"schemaApi": "get:/pages/user-login.json"
}
]
}
]
},
{
"label": "模板管理",
"children": [
@ -119,6 +103,22 @@
]
}
]
},
{
"label": "用户登录",
"children": [
{
"label": "用户登录",
"icon": "fa fa-cube",
"children": [
{
"url": "/user/login",
"label": "用户登录",
"schemaApi": "get:/pages/user-login.json"
}
]
}
]
}
]
}

Loading…
Cancel
Save