【增加】Image task 增加抽屉详细信息切换

This commit is contained in:
cherishsince
2024-05-28 14:29:46 +08:00
parent 0a9882e909
commit a6ec43fd46
2 changed files with 13 additions and 24 deletions

View File

@ -13,6 +13,8 @@ export interface ImageDetailVO {
platform: string // 平台
model: string // 模型
style: string // 图像生成的风格
createTime: string // 创建时间
updateTime: string // 更新事件
}
export interface ImagePageReqVO {
@ -35,18 +37,7 @@ export const ImageApi = {
},
// 获取 image 详细信息
getImageDetail: async (id: number) => {
// return await request.get({ url: `/ai/api-key/page?`, params })
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
return await request.get({ url: `/ai/image/get?id=${id}`})
},
// dall2、dall3 调用
dall: async (data: ImageDallReqVO)=> {