video-flow-b/api/DTO/movie_start_dto.ts
2025-08-17 21:30:43 +08:00

44 lines
986 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 图片故事AI分析返回DTO
*/
export interface CharacterRegion {
/** x坐标 */
x: number;
/** y坐标 */
y: number;
/** 区域宽度 */
width: number;
/** 区域高度 */
height: number;
}
/** 角色分析信息 */
export interface CharacterAnalysis {
/** 角色ID */
id: string;
/** 角色名称 */
role_name: string;
/** 角色区域 */
region: CharacterRegion;
/** 角色头像URL可选用于存储裁剪后的头像 */
avatarUrl?: string;
}
/** 图片故事AI分析返回结构 */
export interface MovieStartDTO {
/** 是否成功 */
success: boolean;
/** 故事梗概 */
story_logline: string;
/** 分类数据 */
potential_genres: string[];
/** 角色头像及名称 */
characters_analysis: CharacterAnalysis[];
/** 图片URL */
image_url: string;
/** 用户输入文本 */
user_text: string;
/** 错误信息 */
error: string | null;
}