diff --git a/src/api/ai/image/index.ts b/src/api/ai/image/index.ts index e2c9b1c1..dfa60c8e 100644 --- a/src/api/ai/image/index.ts +++ b/src/api/ai/image/index.ts @@ -15,10 +15,18 @@ export interface ImageDetailVO { model: string // 模型 style: string // 图像生成的风格 size: string // 图片尺寸 + buttons: ImageMjButtonsVO[] // mj 操作按钮 createTime: string // 创建时间 updateTime: string // 更新事件 } +export interface ImageMjButtonsVO { + customId: string // MJ::JOB::upsample::1::85a4b4c1-8835-46c5-a15c-aea34fad1862 动作标识 + emoji: string // 图标 emoji + label: string // Make Variations 文本 + style: number // 样式: 2(Primary)、3(Green) +} + export interface ImagePageReqVO { pageNo: number // 分页编号 pageSize: number // 分页大小 diff --git a/src/views/ai/image/ImageTask.vue b/src/views/ai/image/ImageTask.vue index f2d2a43b..ec18fb0e 100644 --- a/src/views/ai/image/ImageTask.vue +++ b/src/views/ai/image/ImageTask.vue @@ -5,7 +5,8 @@ v-for="image in imageList" :key="image" :image-detail="image" - @on-btn-click="handlerImageBtnClick" /> + @on-btn-click="handlerImageBtnClick" + @on-mj-btn-click="handlerImageMjBtnClick"/>