新增模板
开发中POST
/api/amis/addTemplate请求参数
Body 参数application/json
object {0}
示例
{
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
},
"configs": [
{
"route": "/",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
}
},
{
"route": "/test",
"config": {
"container": {
"height": 3500
},
"blocks": [
{
"bgcImage": null,
"rotate": 0,
"boxShadow": {
"color": "#000",
"blurRadius": 0,
"x": 0,
"y": 0,
"SpreadRadius": 0
},
"link": "https://icqq5dmqiq.feishu.cn/drive/home/",
"zoom": 1,
"bgcColor": null,
"top": "3177.5",
"size": 16,
"borderRadius": 0,
"left": 702,
"width": 112,
"text": "不洗碗工作室",
"opacity": 1,
"key": "文本框",
"fontColor": null,
"fontWeight": "normal",
"zIndex": 1,
"height": 21,
"bgcSize": "cover"
}
],
"zoom": 1
}
}
],
"category": "test",
"hot": 0,
"name": "test团队",
"introduction": "工程师团队",
"labels": [
"商务",
"领先"
],
"maker": "odin offical",
"downloads": 0,
"photos": [
"https://my.alfred.edu/zoom/_images/foster-lake.jpg",
"https://www.pixelstalk.net/wp-content/uploads/2016/07/Nature-wallpapers-hd-backgroud-1080p.jpg"
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
success
boolean
必需
errCode
null
必需
errMessage
null
必需
示例
{
"success": true,
"errCode": null,
"errMessage": null
}
最后修改时间: 2 年前