forked from 77media/video-flow
98 lines
1.7 KiB
TypeScript
98 lines
1.7 KiB
TypeScript
/**
|
|
* 实体接口定义
|
|
* 所有实体都应该实现这些基础接口
|
|
*/
|
|
|
|
/**
|
|
* 基础实体接口
|
|
*/
|
|
export interface BaseEntity {
|
|
/** 唯一标识 */
|
|
readonly id: string;
|
|
/** 更新时间 */
|
|
readonly updatedAt: number;
|
|
|
|
/**loading进度 0-100 */
|
|
loadingProgress: number;
|
|
/** 禁止编辑 */
|
|
disableEdit: boolean;
|
|
}
|
|
|
|
/**
|
|
* AI文本实体接口
|
|
*/
|
|
export interface AITextEntity extends BaseEntity {
|
|
/** 文本内容 */
|
|
content: string;
|
|
}
|
|
|
|
/**
|
|
* 角色实体接口
|
|
*/
|
|
export interface RoleEntity extends BaseEntity {
|
|
/** 角色名称 */
|
|
name: string;
|
|
/** 角色提示词Id */
|
|
generateTextId: string;
|
|
/**角色标签 */
|
|
tagIds: string[];
|
|
/** 角色图片URL */
|
|
imageUrl: string;
|
|
/** 角色是否已存储 */
|
|
isStored: boolean;
|
|
}
|
|
|
|
/**
|
|
* 标签实体接口
|
|
*/
|
|
export interface TagEntity extends BaseEntity {
|
|
/** 标签名称 */
|
|
name: string;
|
|
/** 内容标签类型 */
|
|
content: number | string;
|
|
}
|
|
|
|
/**
|
|
* 场景实体接口
|
|
*/
|
|
export interface SceneEntity extends BaseEntity {
|
|
/** 场景名称 */
|
|
name: string;
|
|
/** 场景图片URL */
|
|
imageUrl: string;
|
|
/** 场景标签 */
|
|
tagIds: string[];
|
|
/** 场景提示词Id */
|
|
generateTextId: string;
|
|
}
|
|
|
|
interface RoleMap {
|
|
/** 角色ID */
|
|
roleId: string;
|
|
/** 人物ID */
|
|
figureId: string;
|
|
}
|
|
interface ContentItem {
|
|
/** 角色ID */
|
|
roleId: string;
|
|
/** 对话内容 */
|
|
content: string;
|
|
}
|
|
/**
|
|
* 分镜实体接口
|
|
*/
|
|
export interface ShotEntity extends BaseEntity {
|
|
/** 分镜名称 */
|
|
name: string;
|
|
/**分镜草图Url */
|
|
sketchUrl: string;
|
|
/**分镜视频Url */
|
|
videoUrl: string;
|
|
/**人物ID */
|
|
roleMap: RoleMap[];
|
|
/**对话内容 */
|
|
content: ContentItem[];
|
|
/**镜头项 */
|
|
shot: string[];
|
|
}
|