From b21e9526a4f121c4cd2d790b6db7e27e12626946 Mon Sep 17 00:00:00 2001 From: xhxu Date: Tue, 18 Jul 2023 14:13:34 +0800 Subject: [PATCH] //zimu --- .../main/resources/db/migration/V2023071800001_subtitle.sql | 3 +++ .../java/com/iformall/domain/po/sm/PhotoSpeakVideo.java | 6 ++++++ .../src/main/resources/mapper/PhotoSpeakVideoMapper.xml | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 suimangAdmin/src/main/resources/db/migration/V2023071800001_subtitle.sql diff --git a/suimangAdmin/src/main/resources/db/migration/V2023071800001_subtitle.sql b/suimangAdmin/src/main/resources/db/migration/V2023071800001_subtitle.sql new file mode 100644 index 0000000..d816e28 --- /dev/null +++ b/suimangAdmin/src/main/resources/db/migration/V2023071800001_subtitle.sql @@ -0,0 +1,3 @@ +ALTER TABLE `mallink_suimang_test`.`photo_speak_video` +ADD COLUMN `subtitle_enabled` smallint(1) COMMENT '字幕开关' AFTER `person_photo_url`, +ADD COLUMN `subtitle_params` json COMMENT '字幕参数' AFTER `subtitle_enabled`; diff --git a/suimangService/src/main/java/com/iformall/domain/po/sm/PhotoSpeakVideo.java b/suimangService/src/main/java/com/iformall/domain/po/sm/PhotoSpeakVideo.java index ebb494b..bf4360a 100644 --- a/suimangService/src/main/java/com/iformall/domain/po/sm/PhotoSpeakVideo.java +++ b/suimangService/src/main/java/com/iformall/domain/po/sm/PhotoSpeakVideo.java @@ -51,6 +51,12 @@ public class PhotoSpeakVideo extends TenantEntity { @TableField(exist = false) private PersonPhoto personPhoto; + @io.swagger.annotations.ApiModelProperty(value="字幕开关",name="subtitleEnabled") + private Integer subtitleEnabled; + + @io.swagger.annotations.ApiModelProperty(value="字幕参数",name="subtitleParams") + private String subtitleParams; + @io.swagger.annotations.ApiModelProperty(value="EnumVoiceFrom 声音来源",name="voiceFrom") private Integer voiceFrom; diff --git a/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml b/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml index 39e6d1b..ffb6fe4 100644 --- a/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml +++ b/suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml @@ -8,6 +8,9 @@ + + + @@ -39,7 +42,7 @@ `id`, `tenant_id`, `parent_tenant_id`, `user_id`, - `person_photo_id`, `person_photo_url`, `voice_from`, `voice_mould_id`, `voice_mould_sm`, `paperwork`, `voice_material_id`, `voice_material_url`, + `person_photo_id`, `person_photo_url`, `subtitle_enabled`, `subtitle_params`, `voice_from`, `voice_mould_id`, `voice_mould_sm`, `paperwork`, `voice_material_id`, `voice_material_url`, `title`, `cover_img`, `remark`, `video_id`, `video_path`, `video_play_url`, `video_time`, `video_size`, `video_status`, `video_msg`, `create_video_date`, `create_date`, `update_date`, `is_hy`,`video_hy_status`,`music_id`,`save_dir`