feat: 移除图片生成记录中的尺寸字段,调整归档逻辑以支持异步处理
This commit is contained in:
@@ -19,10 +19,8 @@ export interface IImageGenerateRequest {
|
||||
* 图片生成成功后返回给前端的数据。
|
||||
*/
|
||||
export interface IImageGenerateData {
|
||||
/** NewAPI 上游返回的图片访问地址,前端当前优先展示这个地址 */
|
||||
/** 生成图片访问地址,前端当前优先展示这个地址 */
|
||||
imageUrl: string;
|
||||
/** Lsky 图床归档后的图片访问地址,归档失败时为空 */
|
||||
hostedImageUrl?: string | null;
|
||||
/** 上游返回的修订提示词,可能为空 */
|
||||
revisedPrompt?: string;
|
||||
}
|
||||
@@ -50,8 +48,6 @@ export interface IImageHistoryItem {
|
||||
status: ImageGenerationStatus;
|
||||
/** 生图模型 */
|
||||
model: string;
|
||||
/** 图片尺寸 */
|
||||
size: string;
|
||||
/** 生图开始时间,ISO 字符串 */
|
||||
startedAt: string;
|
||||
/** 生图结束时间,ISO 字符串,未结束时为 null */
|
||||
@@ -60,11 +56,11 @@ export interface IImageHistoryItem {
|
||||
durationMs: number | null;
|
||||
/** NewAPI 上游返回的图片访问地址 */
|
||||
imageUrl: string | null;
|
||||
/** Lsky 图床归档后的图片访问地址 */
|
||||
/** Lsky 图床归档后的图片访问地址;为空且没有错误提示时表示仍在归档中 */
|
||||
hostedImageUrl: string | null;
|
||||
/** 上游返回的修订提示词,可能为空 */
|
||||
revisedPrompt: string | null;
|
||||
/** 面向前端的本地泛化错误提示,不包含上游或内部服务细节 */
|
||||
/** 面向前端的本地泛化错误提示;为空且 hostedImageUrl 也为空时表示仍在归档中 */
|
||||
errorMessage: string | null;
|
||||
/** 记录创建时间,ISO 字符串 */
|
||||
createdAt: string;
|
||||
|
||||
Reference in New Issue
Block a user