{
"name": "string",
"resolution": 0,
"action": 0,
"canvas": {
"version": "string",
"objects": [
{
"type": "string",
"version": "string",
"originX": "string",
"originY": "string",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"fill": "string",
"stroke": "string",
"strokeWidth": 0,
"strokeDashArray": null,
"strokeLineCap": "string",
"strokeDashOffset": 0,
"strokeLineJoin": "string",
"strokeUniform": true,
"strokeMiterLimit": 0,
"scaleX": 0,
"scaleY": 0,
"angle": 0,
"flipX": true,
"flipY": true,
"opacity": 0,
"shadow": null,
"visible": true,
"backgroundColor": "string",
"fillRule": "string",
"paintFirst": "string",
"globalCompositeOperation": "string",
"skewX": 0,
"skewY": 0,
"cropX": 0,
"cropY": 0,
"hasControls": true,
"hasBorders": true,
"data": {
"id": 0,
"type": 0,
"url": "string",
"avatar_type": 0,
"name": "string",
"code": "string",
"description": "string",
"image": "string",
"portrait": "string",
"fontSize": 0,
"fontFamily": "string",
"fill": "string",
"stroke": "string",
"effect": {
"name": "string",
"type": "string",
"server_key": "string",
"url": "string"
},
"status": 0,
"category_id": 0
},
"selectable": true,
"id": "string",
"customType": "string",
"lockScalingY": true,
"lockScalingX": true,
"lockMovementX": true,
"lockMovementY": true,
"_controlsVisibility": {
"bl": true,
"br": true,
"mb": true,
"ml": true,
"mr": true,
"mt": true,
"tl": true,
"tr": true,
"mtr": true
},
"name": "string",
"src": "string",
"crossOrigin": null,
"filters": [
"string"
],
"fontFamily": "string",
"fontWeight": 0,
"fontSize": 0,
"text": "string",
"underline": true,
"overline": true,
"linethrough": true,
"textAlign": "string",
"fontStyle": "string",
"lineHeight": 0,
"textBackgroundColor": "string",
"charSpacing": 0,
"styles": [
"string"
],
"direction": "string",
"path": null,
"pathStartOffset": 0,
"pathSide": "string",
"pathAlign": "string",
"minWidth": 0,
"splitByGrapheme": true,
"lockUniScaling": true
}
]
},
"dub": {
"name": "string",
"description": "string",
"code": "string",
"url": "string"
},
"music": {
"id": 0,
"name": "string",
"cover": "string",
"url": "string"
},
"voice_content": {
"text": "string",
"voice_url": "string",
"type": 0
},
"texts": [
{
"AaiMotionInEffect": "string",
"AaiMotionLoopEffect": "string",
"AaiMotionOutEffect": "string",
"Font": "string",
"FontColor": "string",
"FontSize": 0,
"Outline": 0,
"OutlineColour": "string",
"X": 0,
"Y": 0,
"Content": "string"
}
],
"maps": [
{
"X": 0,
"Y": 0,
"Height": 0,
"Width": 0,
"id": 0,
"url": "string",
"category_id": 0
}
],
"prospect": [
{
"X": 0,
"Y": 0,
"Height": 0,
"Width": 0,
"id": 0,
"url": "string"
}
],
"captions": {
"status": 0,
"Font": "string",
"FontColor": "string",
"FontSize": 0,
"Outline": 0,
"OutlineColour": "string",
"X": 0,
"Y": 0
},
"background": {
"id": 0,
"type": 0,
"url": "string"
},
"avatar": {
"avatar_type": 0,
"name": "string",
"code": "string",
"description": "string",
"image": "string",
"portrait": "string"
}
}
curl --location --request POST 'adminapi/avatar.avatar/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"resolution": 0,
"action": 0,
"canvas": {
"version": "string",
"objects": [
{
"type": "string",
"version": "string",
"originX": "string",
"originY": "string",
"left": 0,
"top": 0,
"width": 0,
"height": 0,
"fill": "string",
"stroke": "string",
"strokeWidth": 0,
"strokeDashArray": null,
"strokeLineCap": "string",
"strokeDashOffset": 0,
"strokeLineJoin": "string",
"strokeUniform": true,
"strokeMiterLimit": 0,
"scaleX": 0,
"scaleY": 0,
"angle": 0,
"flipX": true,
"flipY": true,
"opacity": 0,
"shadow": null,
"visible": true,
"backgroundColor": "string",
"fillRule": "string",
"paintFirst": "string",
"globalCompositeOperation": "string",
"skewX": 0,
"skewY": 0,
"cropX": 0,
"cropY": 0,
"hasControls": true,
"hasBorders": true,
"data": {
"id": 0,
"type": 0,
"url": "string",
"avatar_type": 0,
"name": "string",
"code": "string",
"description": "string",
"image": "string",
"portrait": "string",
"fontSize": 0,
"fontFamily": "string",
"fill": "string",
"stroke": "string",
"effect": {
"name": "string",
"type": "string",
"server_key": "string",
"url": "string"
},
"status": 0,
"category_id": 0
},
"selectable": true,
"id": "string",
"customType": "string",
"lockScalingY": true,
"lockScalingX": true,
"lockMovementX": true,
"lockMovementY": true,
"_controlsVisibility": {
"bl": true,
"br": true,
"mb": true,
"ml": true,
"mr": true,
"mt": true,
"tl": true,
"tr": true,
"mtr": true
},
"name": "string",
"src": "string",
"crossOrigin": null,
"filters": [
"string"
],
"fontFamily": "string",
"fontWeight": 0,
"fontSize": 0,
"text": "string",
"underline": true,
"overline": true,
"linethrough": true,
"textAlign": "string",
"fontStyle": "string",
"lineHeight": 0,
"textBackgroundColor": "string",
"charSpacing": 0,
"styles": [
"string"
],
"direction": "string",
"path": null,
"pathStartOffset": 0,
"pathSide": "string",
"pathAlign": "string",
"minWidth": 0,
"splitByGrapheme": true,
"lockUniScaling": true
}
]
},
"dub": {
"name": "string",
"description": "string",
"code": "string",
"url": "string"
},
"music": {
"id": 0,
"name": "string",
"cover": "string",
"url": "string"
},
"voice_content": {
"text": "string",
"voice_url": "string",
"type": 0
},
"texts": [
{
"AaiMotionInEffect": "string",
"AaiMotionLoopEffect": "string",
"AaiMotionOutEffect": "string",
"Font": "string",
"FontColor": "string",
"FontSize": 0,
"Outline": 0,
"OutlineColour": "string",
"X": 0,
"Y": 0,
"Content": "string"
}
],
"maps": [
{
"X": 0,
"Y": 0,
"Height": 0,
"Width": 0,
"id": 0,
"url": "string",
"category_id": 0
}
],
"prospect": [
{
"X": 0,
"Y": 0,
"Height": 0,
"Width": 0,
"id": 0,
"url": "string"
}
],
"captions": {
"status": 0,
"Font": "string",
"FontColor": "string",
"FontSize": 0,
"Outline": 0,
"OutlineColour": "string",
"X": 0,
"Y": 0
},
"background": {
"id": 0,
"type": 0,
"url": "string"
},
"avatar": {
"avatar_type": 0,
"name": "string",
"code": "string",
"description": "string",
"image": "string",
"portrait": "string"
}
}'
{
"code": 1,
"show": 1,
"msg": "",
"data": [
{
"name": "阿里巴巴普惠体",
"code": "Alibaba PuHuiTi"
},
{
"name": "仿宋字体",
"code": "STFangsong"
},
{
"name": "楷体",
"code": "KaiTi"
},
{
"name": "宋体",
"code": "SimSun"
},
{
"name": "思源黑体",
"code": "Source Han Sans CN Normal"
},
{
"name": "思源宋体",
"code": "思源宋体"
},
{
"name": "文泉驿等宽正黑",
"code": "WenQuanYi Zen Hei Mono"
},
{
"name": "文泉驿点阵正黑",
"code": "WenQuanYi Zen Hei Sharp"
},
{
"name": "文泉驿微米黑",
"code": "文泉驿微米黑"
},
{
"name": "站酷高端黑体",
"code": "zcool-gdh"
},
{
"name": "站酷快乐体",
"code": "HappyZcool-2016"
},
{
"name": "站酷文艺体",
"code": "zcoolwenyiti"
}
]
}