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.

117 lines
2.7 KiB

{
"type": "form",
"title": "上传素材",
"body": [
{
"label": "渠道类型",
"type": "radios",
"name": "sendChannel",
"required": true,
"options": [
{
"label": "服务号",
"value": "50"
},
{
"label": "小程序",
"value": "60"
},
{
"label": "企业微信",
"value": "70"
},
{
"label": "钉钉工作消息",
"value": "90"
}
]
},
{
"type": "select",
"label": "服务号账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=50",
"visibleOn": "this.sendChannel == 50",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "select",
"label": "小程序账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=60",
"visibleOn": "this.sendChannel == 60",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "select",
"label": "企业微信账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=70",
"visibleOn": "this.sendChannel == 70",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "select",
"label": "钉钉工作消息账号",
"name": "sendAccount",
"source": "http://localhost:8080/account/queryByChannelType?channelType=90",
"visibleOn": "this.sendChannel == 90",
"clearValueOnHidden": false,
"required": true,
"size": "lg"
},
{
"type": "radios",
"label": "文件类型",
"name": "fileType",
"required": true,
"options": [
{
"label": "图片",
"value": "10"
},
{
"label": "语音",
"value": "20"
},
{
"label": "普通文件",
"value": "30"
},
{
"label": "视频",
"value": "40"
}
]
},
{
"type": "input-file",
"label": "上传素材",
"name": "file",
"required": true,
"asBlob": true
},
{
"type": "static",
"name": "id",
"visibleOn": "typeof data.id !== 'undefined'",
"label": "返回 ID"
}
],
"api": {
"url": "http://localhost:8080/material/upload",
"method": "post",
"data": {
"sendChannel": "${sendChannel}",
"sendAccount": "${sendAccount}",
"fileType": "${fileType}",
"file": "${file}"
}
}
}