feat: 完善广场功能

This commit is contained in:
2026-04-26 19:17:15 +08:00
parent 3e8e2353f0
commit eff52f6063
16 changed files with 833 additions and 23 deletions
+33
View File
@@ -62,6 +62,8 @@ export interface IImageHistoryItem {
revisedPrompt: string | null;
/** 面向前端的本地泛化错误提示;为空且 hostedImageUrl 也为空时表示仍在归档中 */
errorMessage: string | null;
/** 此图片是否已发布到广场 */
isPublic: boolean;
/** 记录创建时间,ISO 字符串 */
createdAt: string;
}
@@ -92,6 +94,37 @@ export interface IImageHistoryListData {
items: IImageHistoryItem[];
}
export interface IPlazaPostItem {
/** 广场发布记录 ID,BigInt 会以字符串返回 */
id: string;
/** 生图记录 IDBigInt 会以字符串返回 */
imageGenerationId: string;
/** 广场卡片展示的用户提示词 */
prompt: string;
/** 广场使用的图床归档图片地址 */
hostedImageUrl: string;
/** 广场展示的作者名称 */
authorDisplayName: string;
/** 发布到广场的时间,ISO 字符串 */
publishedAt: string;
}
export interface IPlazaPostListData {
/** 当前页码 */
page: number;
/** 每页数量 */
pageSize: number;
/** 当前可见广场记录总数 */
total: number;
/** 当前页广场记录 */
items: IPlazaPostItem[];
}
export interface IImagePublicStateData {
/** 此图片是否已发布到广场 */
isPublic: boolean;
}
/**
* 全局生图统计响应。
*/