【解决todo】如果有生成中的图片,轮询改成 get 接口去轮询,不基于 page 轮询

This commit is contained in:
cherishsince
2024-06-28 16:41:12 +08:00
parent 8daf9bb347
commit 6f9cb4f8f2
2 changed files with 35 additions and 4 deletions

View File

@ -64,6 +64,10 @@ export const ImageApi = {
getImageMy: async (id: number) => {
return await request.get({ url: `/ai/image/get-my?id=${id}` })
},
// 获取我的图片
getImageMyIds: async (params) => {
return await request.get({ url: `/ai/image/get-my-ids`, params})
},
// 生成图片
drawImage: async (data: ImageDrawReqVO) => {
return await request.post({ url: `/ai/image/draw`, data })