mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 03:15:07 +08:00
【解决todo】如果有生成中的图片,轮询改成 get 接口去轮询,不基于 page 轮询
This commit is contained in:
@ -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 })
|
||||
|
Reference in New Issue
Block a user