forked from 77media/video-flow
更新模式字段为'自动',修改initializeFromProject方法以接受script参数,调整createProject方法的文档注释以反映最新的模式定义。
This commit is contained in:
parent
526b4d5cd1
commit
cccd385329
@ -695,8 +695,8 @@ export const createMovieProjectV1 = async (request: {
|
||||
script: string;
|
||||
/** 用户ID */
|
||||
user_id: string;
|
||||
/** 模式:auto | manual */
|
||||
mode: "auto" | "manual";
|
||||
/** 模式:automatic | manual */
|
||||
mode: "automatic" | "manual";
|
||||
/** 分辨率:720p | 1080p | 4k */
|
||||
resolution: "720p" | "1080p" | "4k";
|
||||
/** 语言 */
|
||||
|
||||
@ -51,7 +51,7 @@ export interface UseScriptService {
|
||||
/** 根据用户想法生成剧本并自动创建项目 */
|
||||
generateScriptFromIdea: (idea: string) => Promise<void>;
|
||||
/** 根据项目ID初始化已有剧本 */
|
||||
initializeFromProject: (projectId: string) => Promise<void>;
|
||||
initializeFromProject: (projectId: string,script:string) => Promise<void>;
|
||||
/** 修改剧本 */
|
||||
updateScript: (scriptText: string) => Promise<void>;
|
||||
/** 应用剧本到视频生成流程 */
|
||||
|
||||
@ -118,14 +118,14 @@ export class ScriptEditUseCase {
|
||||
* @description: 创建项目
|
||||
* @param prompt 用户提示词
|
||||
* @param userId 用户ID
|
||||
* @param mode 模式:auto | manual
|
||||
* @param mode automatic | manual
|
||||
* @param resolution 分辨率:720p | 1080p | 4k
|
||||
* @returns Promise<string> 返回项目ID
|
||||
*/
|
||||
async createProject(
|
||||
prompt: string,
|
||||
userId: string ,
|
||||
mode: "auto" | "manual" = "auto",
|
||||
mode: "automatic" | "manual" = "automatic",
|
||||
resolution: "720p" | "1080p" | "4k" = "720p",
|
||||
language: string
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user