feat: 多功能更新
This commit is contained in:
@@ -19,8 +19,10 @@ export interface IImageGenerateRequest {
|
||||
* 图片生成成功后返回给前端的数据。
|
||||
*/
|
||||
export interface IImageGenerateData {
|
||||
/** 生成图片的访问地址 */
|
||||
/** NewAPI 上游返回的图片访问地址,前端当前优先展示这个地址 */
|
||||
imageUrl: string;
|
||||
/** Lsky 图床归档后的图片访问地址,归档失败时为空 */
|
||||
hostedImageUrl?: string | null;
|
||||
/** 上游返回的修订提示词,可能为空 */
|
||||
revisedPrompt?: string;
|
||||
}
|
||||
@@ -56,11 +58,13 @@ export interface IImageHistoryItem {
|
||||
endedAt: string | null;
|
||||
/** 生图耗时,单位毫秒 */
|
||||
durationMs: number | null;
|
||||
/** 生成图片的访问地址 */
|
||||
/** NewAPI 上游返回的图片访问地址 */
|
||||
imageUrl: string | null;
|
||||
/** Lsky 图床归档后的图片访问地址 */
|
||||
hostedImageUrl: string | null;
|
||||
/** 上游返回的修订提示词,可能为空 */
|
||||
revisedPrompt: string | null;
|
||||
/** 失败原因或图片保存提示 */
|
||||
/** 失败原因或图床归档提示 */
|
||||
errorMessage: string | null;
|
||||
/** 记录创建时间,ISO 字符串 */
|
||||
createdAt: string;
|
||||
@@ -70,12 +74,12 @@ export interface IImageHistoryItem {
|
||||
* 生图历史详情。
|
||||
*/
|
||||
export interface IImageHistoryDetail extends IImageHistoryItem {
|
||||
/** 服务端保存的图片 base64 原文,可能为空 */
|
||||
imageBase64: string | null;
|
||||
/** 图片 MIME 类型,可能为空 */
|
||||
imageMimeType: string | null;
|
||||
/** 完整上游生图接口返回结果 */
|
||||
upstreamResponse: unknown;
|
||||
/** 完整 Lsky 图床上传接口返回结果 */
|
||||
hostedResponse: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user