文档
测试

保存图层json接口

POST
https://api.ai-dog.net/api/LogoChoice/saveLayerJson

请求头

参数名
类型
描述
必填
Authorization
string
示例:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjExMTA0LCJhdWQiOiIiLCJleHAiOjE3MzI2MTA5MTUsImlhdCI6MTczMjAwNjExNSwiaXNzIjoiIiwianRpIjoiZDgyYWRmODM2MWMyYzU2NjFjMjRlM2ZkMWMyMjUwYzAiLCJuYmYiOjE3MzIwMDYxMTUsInN1YiI6IiJ9.r2msATgFxcmTCYA1sEeWxgesmLB17Q58dbaqui111y4
必填

请求参数

参数名
类型
描述
必填
image_id
int
示例:55
必填
details
string
示例:{ "version": "5.4.1", "objects": [ { "type": "rect", "version": "5.4.1", "originX": "left", "originY": "top", "left": 0, "top": 0, "width": 1200, "height": 900, "fill": "#fff", "stroke": null, "strokeWidth": 1, "strokeDashArray": null, "strokeLineCap": "butt", "strokeDashOffset": 0, "strokeLineJoin": "miter", "strokeUniform": false, "strokeMiterLimit": 4, "scaleX": 1, "scaleY": 1, "angle": 0, "flipX": false, "flipY": false, "opacity": 1, "shadow": null, "visible": true, "backgroundColor": "", "fillRule": "nonzero", "paintFirst": "fill", "globalCompositeOperation": "source-over", "skewX": 0, "skewY": 0, "rx": 0, "ry": 0, "id": "workspace", "selectable": false, "hasControls": false }, { "type": "image", "version": "5.4.1", "originX": "left", "originY": "top", "left": 687.6122, "top": 308.3789, "width": 548, "height": 541, "fill": "rgb(0,0,0)", "stroke": null, "strokeWidth": 0, "strokeDashArray": null, "strokeLineCap": "butt", "strokeDashOffset": 0, "strokeLineJoin": "miter", "strokeUniform": false, "strokeMiterLimit": 4, "scaleX": 0.3976, "scaleY": 0.3933, "angle": 0, "flipX": false, "flipY": false, "opacity": 1, "shadow": null, "visible": true, "backgroundColor": "", "fillRule": "nonzero", "paintFirst": "fill", "globalCompositeOperation": "source-over", "skewX": 0, "skewY": 0, "cropX": 0, "cropY": 0, "id": "icon", "selectable": true, "hasControls": true, "src": "https://ailogo.oss-cn-shanghai.aliyuncs.com/images/10810/clipping/fe6e8b0465d41b6fe937e6d49f28a916/202411121851-fe6e8b0465d41b6fe937e6d49f28a916-0-31422.png", "crossOrigin": null, "filters": [] }, { "type": "textbox", "version": "5.4.1", "originX": "left", "originY": "top", "left": 306.3213, "top": 348.5945, "width": 346.6915, "height": 67.8, "fill": "rgb(121, 101, 89)", "stroke": null, "strokeWidth": 8, "strokeDashArray": null, "strokeLineCap": "butt", "strokeDashOffset": 0, "strokeLineJoin": "miter", "strokeUniform": true, "strokeMiterLimit": 4, "scaleX": 1, "scaleY": 1, "angle": 0, "flipX": false, "flipY": false, "opacity": 1, "shadow": "", "visible": true, "backgroundColor": "", "fillRule": "nonzero", "paintFirst": "stroke", "globalCompositeOperation": "source-over", "skewX": 0, "skewY": 0, "fontFamily": "Ma Shan Zheng", "fontWeight": "normal", "fontSize": 60, "text": "鸟天下", "underline": false, "overline": false, "linethrough": false, "textAlign": "justify", "fontStyle": "normal", "lineHeight": 1.16, "textBackgroundColor": "", "charSpacing": 170, "styles": [], "direction": "ltr", "path": null, "pathStartOffset": 0, "pathSide": "left", "pathAlign": "baseline", "minWidth": 20, "splitByGrapheme": true, "id": "title", "selectable": true, "hasControls": true, "editable": true }, { "type": "textbox", "version": "5.4.1", "originX": "left", "originY": "top", "left": 306.3213, "top": 444.7559, "width": 346.6915, "height": 45.2, "fill": "rgb(121, 101, 89)", "stroke": null, "strokeWidth": 1, "strokeDashArray": null, "strokeLineCap": "butt", "strokeDashOffset": 0, "strokeLineJoin": "miter", "strokeUniform": false, "strokeMiterLimit": 4, "scaleX": 1, "scaleY": 1, "angle": 0, "flipX": false, "flipY": false, "opacity": 1, "shadow": "", "visible": true, "backgroundColor": "", "fillRule": "nonzero", "paintFirst": "stroke", "globalCompositeOperation": "source-over", "skewX": 0, "skewY": 0, "fontFamily": "Ma Shan Zheng", "fontWeight": "normal", "fontSize": 40, "text": "天下鸟 都是好鸟", "underline": false, "overline": false, "linethrough": false, "textAlign": "justify", "fontStyle": "normal", "lineHeight": 1.16, "textBackgroundColor": "", "charSpacing": 0, "styles": [], "direction": "ltr", "path": null, "pathStartOffset": 0, "pathSide": "left", "pathAlign": "baseline", "minWidth": 20, "splitByGrapheme": true, "id": "subtitile", "selectable": true, "hasControls": true, "editable": true } ], "clipPath": { "type": "rect", "version": "5.4.1", "originX": "left", "originY": "top", "left": 0, "top": 0, "width": 1200, "height": 900, "fill": "#fff", "stroke": null, "strokeWidth": 1, "strokeDashArray": null, "strokeLineCap": "butt", "strokeDashOffset": 0, "strokeLineJoin": "miter", "strokeUniform": false, "strokeMiterLimit": 4, "scaleX": 1, "scaleY": 1, "angle": 0, "flipX": false, "flipY": false, "opacity": 1, "shadow": null, "visible": true, "backgroundColor": "", "fillRule": "nonzero", "paintFirst": "fill", "globalCompositeOperation": "source-over", "skewX": 0, "skewY": 0, "rx": 0, "ry": 0, "selectable": true, "hasControls": true } }
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:保存成功
必填
result
array
数据列表
必填
url
string
示例:
必填