feat: 图生图功能

feat: 参考图片(图生图)选择器
ui: 文件上传(预留) composable
ui: 登录过期提示
ui: 调整部分 ui
This commit is contained in:
2024-03-22 16:34:00 +08:00
parent 75f431d7bf
commit 5d52e8dafa
9 changed files with 295 additions and 32 deletions

30
typings/schema.d.ts vendored
View File

@@ -47,6 +47,14 @@ namespace req {
sms_code: string
}
}
namespace file {
interface Upload {
file_name: string
file_type: string
file_size: number
}
}
}
namespace resp {
@@ -80,6 +88,12 @@ namespace resp {
namespace HunYuan {
type Resolution = '768:768' | '768:1024' | '1024:768'
interface resp {
data_id: string | number
request_id: string
request_image: string
}
namespace Text2Img {
interface req {
device_id: string
@@ -88,14 +102,16 @@ namespace HunYuan {
styles: number
resolution: string
}
}
interface resp {
data_id: string | number
request_id: string
request_image: string
namespace Img2Img {
interface req {
device_id: string
prompt: string
negative_prompt?: string
styles: number
resolution: string
file: File
}
}
namespace Img2Text {
}
}