多图生成图片

This commit is contained in:
ZLI263
2025-10-17 21:28:59 +08:00
parent 84da5e60ed
commit c809e383fa
5 changed files with 848 additions and 127 deletions

View File

@@ -5,7 +5,7 @@ export function getImageList(params) {
return request({
url: '/image-model/page',
method: 'post',
params: params // 使用params而不是data这样参数会作为URL查询参数传递
params: params // 使用params传递URL查询参数因为后端使用@RequestParam
})
}
@@ -79,6 +79,16 @@ export function imageProcessing(data) {
return request({
url: '/image-model/image-background',
method: 'post',
data
data,
timeout: 60000 // 设置60秒超时图像处理可能需要较长时间
})
}
// 检查任务状态
export function checkImageModelStatus() {
return request({
url: '/image-model/check-status',
method: 'post',
timeout: 30000 // 设置30秒超时
})
}