From 3d5879ecb8dcd40fa5196072332523465ffb14e6 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Sun, 26 May 2024 21:05:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91AI=20Image?= =?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=20detail=20vo=20=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/image/index.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/api/ai/image/index.ts diff --git a/src/api/ai/image/index.ts b/src/api/ai/image/index.ts new file mode 100644 index 00000000..1efa63ba --- /dev/null +++ b/src/api/ai/image/index.ts @@ -0,0 +1,24 @@ +import request from '@/config/axios' + +// AI API 密钥 VO +export interface ImageDetailVO { + id: number // 编号 + prompt: string // 提示词 + status: string // 状态 + errorMessage: string // 错误信息 + type: string // 模型下分不同的类型(清晰、真实...) + taskId: number // dr 任务id + imageUrl: string // 任务地址 + originalPicUrl: string // 绘制图片地址 + platform: string // 平台 + model: string // 模型 +} + +// AI API 密钥 API +export const ApiKeyApi = { + // 查询 API 密钥分页 + getApiKeyPage: async (params: any) => { + return await request.get({ url: `/ai/api-key/page`, params }) + }, + +}