From 376ec1a61ceeb79a5e8e073b06701dec714b862c Mon Sep 17 00:00:00 2001 From: cherishsince Date: Sun, 26 May 2024 21:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91image=20lis?= =?UTF-8?q?t=20=E6=8E=A5=E5=8F=A3=20mock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ai/image/index.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/api/ai/image/index.ts b/src/api/ai/image/index.ts index 79517cc7..d8199f2a 100644 --- a/src/api/ai/image/index.ts +++ b/src/api/ai/image/index.ts @@ -14,8 +14,29 @@ export interface ImageDetailVO { model: string // 模型 } +export interface ImagePageReqVO { + pageNo: number // 分页编号 + pageSize: number // 分页大小 +} + + // AI API 密钥 API export const ImageApi = { + getImageList: async (params: ImagePageReqVO) => { + return [ + { + id: 1, + prompt: '童话里的小屋是什么样子?', + status: 'todo', + errorMessage: 'error 未登录', + type: 'qinxi', + taskId: 111, + imageUrl: 'https://img.bigpt8.com/uploads/thumbnail/20240509/b7802797e5f709f35a451a1591d4d495.png', + platform: 'dr', + model: 'dr' + } + ] as ImageDetailVO[] + }, // 获取 image 详细信息 getImageDetail: async (id: number) => { // return await request.get({ url: `/ai/api-key/page?`, params })