FastMovieAI 二开基线 v1.0 (完整源码)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\model\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class ModelPointType extends Enum
|
||||
{
|
||||
const TIMES = [
|
||||
'label' => '次',
|
||||
'value' => 'times',
|
||||
'unit' => '次'
|
||||
];
|
||||
const FIELD_RULE = [
|
||||
'label' => '字段规则',
|
||||
'value' => 'field_rule',
|
||||
'unit' => '秒起'
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\model\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class ModelScene extends Enum
|
||||
{
|
||||
const CREATIVE_SCRIPT = [
|
||||
'label' => '创意剧本',
|
||||
'value' => 'creative_script',
|
||||
'props' => [
|
||||
'type' => 'primary',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const CREATIVE_EPISODE = [
|
||||
'label' => '续写分集',
|
||||
'value' => 'creative_episode',
|
||||
'props' => [
|
||||
'type' => 'primary',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const CREATIVE_SCENES = [
|
||||
'label' => '创作场景',
|
||||
'value' => 'creative_scenes',
|
||||
'props' => [
|
||||
'type' => 'primary',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const CREATIVE_STORYBOARDS = [
|
||||
'label' => '创作分镜',
|
||||
'value' => 'creative_storyboards',
|
||||
'props' => [
|
||||
'type' => 'primary',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const DRAMA_COVER = [
|
||||
'label' => '短剧封面',
|
||||
'value' => 'drama_cover',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const SCENE_IMAGE = [
|
||||
'label' => '场景图片',
|
||||
'value' => 'scene_image',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const ACTOR_IMAGE = [
|
||||
'label' => '角色形象',
|
||||
'value' => 'actor_image',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const ACTOR_THREE_VIEW_IMAGE = [
|
||||
'label' => '角色三视图',
|
||||
'value' => 'actor_three_view_image',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const STORYBOARD_IMAGE = [
|
||||
'label' => '分镜图片',
|
||||
'value' => 'storyboard_image',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const CHARACTER_LOOK_COSTUME = [
|
||||
'label' => '角色服饰',
|
||||
'value' => 'character_look_costume',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const ACTOR_COSTUME = [
|
||||
'label' => '角色换装',
|
||||
'value' => 'actor_costume',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const ACTOR_COSTUME_THREE_VIEW = [
|
||||
'label' => '角色换装三视图',
|
||||
'value' => 'actor_costume_three_view',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const PROP_IMAGE = [
|
||||
'label' => '物品图片',
|
||||
'value' => 'prop_image',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const PROP_THREE_VIEW_IMAGE = [
|
||||
'label' => '物品三视图',
|
||||
'value' => 'prop_three_view_image',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const STORYBOARD_VIDEO = [
|
||||
'label' => '分镜视频',
|
||||
'value' => 'storyboard_video',
|
||||
'props' => [
|
||||
'type' => 'success',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const DIALOGUE_VOICE = [
|
||||
'label' => '台词语音',
|
||||
'value' => 'dialogue_voice',
|
||||
'props' => [
|
||||
'type' => 'danger',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const STORYBOARD_NARRATION_VOICE = [
|
||||
'label' => '分镜旁白语音',
|
||||
'value' => 'storyboard_narration_voice',
|
||||
'props' => [
|
||||
'type' => 'danger',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const STORYBOARD_SFX_VOICE = [
|
||||
'label' => '分镜音效',
|
||||
'value' => 'storyboard_sfx_voice',
|
||||
'props' => [
|
||||
'type' => 'danger',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
const STORYBOARD_MUSIC_VOICE = [
|
||||
'label' => '分镜音乐',
|
||||
'value' => 'storyboard_music_voice',
|
||||
'props' => [
|
||||
'type' => 'danger',
|
||||
],
|
||||
'extra' => [
|
||||
'charge_unit' => '次',
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\model\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class ModelTaskStatus extends Enum
|
||||
{
|
||||
const WAIT = [
|
||||
'label' => '待处理',
|
||||
'value' => 'wait',
|
||||
'props' => [
|
||||
'type' => 'info'
|
||||
]
|
||||
];
|
||||
const PROCESSING = [
|
||||
'label' => '处理中',
|
||||
'value' => 'processing',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const WAIT_DOWNLOAD = [
|
||||
'label' => '等待下载',
|
||||
'value' => 'wait_download',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const DOWNLOADING = [
|
||||
'label' => '下载中',
|
||||
'value' => 'downloading',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const UPLOADING = [
|
||||
'label' => '上传中',
|
||||
'value' => 'uploading',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const SUCCESS = [
|
||||
'label' => '成功',
|
||||
'value' => 'success',
|
||||
'props' => [
|
||||
'type' => 'success'
|
||||
]
|
||||
];
|
||||
const FAIL = [
|
||||
'label' => '失败',
|
||||
'value' => 'fail',
|
||||
'props' => [
|
||||
'type' => 'danger'
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\model\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class ModelType extends Enum
|
||||
{
|
||||
const CHAT = [
|
||||
'label' => '对话',
|
||||
'value' => 'chat',
|
||||
'props' => [
|
||||
'type' => 'primary',
|
||||
]
|
||||
];
|
||||
const DRAW = [
|
||||
'label' => '绘图',
|
||||
'value' => 'draw',
|
||||
'props' => [
|
||||
'type' => 'warning',
|
||||
]
|
||||
];
|
||||
const TOVIDEO = [
|
||||
'label' => '视频生成',
|
||||
'value' => 'tovideo',
|
||||
'props' => [
|
||||
'type' => 'success',
|
||||
]
|
||||
];
|
||||
const AUDIO = [
|
||||
'label' => '音频生成',
|
||||
'value' => 'audio',
|
||||
'props' => [
|
||||
'type' => 'danger',
|
||||
]
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\model\utils\enum;
|
||||
|
||||
use app\expose\enum\builder\Enum;
|
||||
|
||||
class ModelVoiceStatus extends Enum
|
||||
{
|
||||
const WAIT = [
|
||||
'label' => '待提交',
|
||||
'value' => 'wait',
|
||||
'props' => [
|
||||
'type' => 'info'
|
||||
]
|
||||
];
|
||||
const CLONING = [
|
||||
'label' => '克隆中',
|
||||
'value' => 'cloning',
|
||||
'props' => [
|
||||
'type' => 'primary'
|
||||
]
|
||||
];
|
||||
const SUCCESS = [
|
||||
'label' => '成功',
|
||||
'value' => 'success',
|
||||
'props' => [
|
||||
'type' => 'success'
|
||||
]
|
||||
];
|
||||
const FAIL = [
|
||||
'label' => '失败',
|
||||
'value' => 'fail',
|
||||
'props' => [
|
||||
'type' => 'danger'
|
||||
]
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user