支持素材生成上传参考图

图标素材生成支持上传普通参考图并提交到后端参考图数组。

UI设计图生成和UI素材提取支持上传参考图并写入生成输入记录。

同步前后端契约、OpenAPI、文档和相关单测。
This commit is contained in:
2026-06-27 20:27:55 +08:00
parent f20f4e0f8e
commit 5976c2b337
31 changed files with 1232 additions and 235 deletions
@@ -2778,7 +2778,14 @@
"properties": {
"referenceImageSrc": {
"type": "string",
"description": "规范图/参考图 Data URL。"
"description": "规范图/参考图 Data URL 或 objectKey;上传参考图优先提交 objectKey。"
},
"referenceImageSrcs": {
"type": "array",
"items": {
"type": "string",
"description": "额外图标素材参考图 Data URL 或 objectKey;上传参考图优先提交 objectKey。"
}
},
"iconDescriptions": {
"type": "array",
@@ -2840,13 +2847,20 @@
"properties": {
"sourceImageSrc": {
"type": "string",
"description": "UI 设计图 Data URL。"
"description": "UI 设计图 Data URL 或 objectKey。"
},
"model": {
"type": "string",
"default": "gemini-3.1-flash-image-preview",
"description": "支持 gpt-image-2、gemini-3.1-flash-image-preview、nanobanana2、nano-banana。未传时默认使用 nanobanana。"
},
"referenceImageSrcs": {
"type": "array",
"items": {
"type": "string",
"description": "额外 UI 素材参考图 Data URL 或 objectKey;上传参考图优先提交 objectKey。"
}
},
"aspectRatio": {
"type": "string",
"const": "1:1",