Pārlūkot izejas kodu

//zimu

private_deployment
xhxu pirms 1 gada
vecāks
revīzija
b21e9526a4
3 mainītis faili ar 13 papildinājumiem un 1 dzēšanām
  1. +3
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071800001_subtitle.sql
  2. +6
    -0
      suimangService/src/main/java/com/iformall/domain/po/sm/PhotoSpeakVideo.java
  3. +4
    -1
      suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml

+ 3
- 0
suimangAdmin/src/main/resources/db/migration/V2023071800001_subtitle.sql Parādīt failu

@@ -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`;

+ 6
- 0
suimangService/src/main/java/com/iformall/domain/po/sm/PhotoSpeakVideo.java Parādīt failu

@@ -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;



+ 4
- 1
suimangService/src/main/resources/mapper/PhotoSpeakVideoMapper.xml Parādīt failu

@@ -8,6 +8,9 @@
<result column="user_id" jdbcType="BIGINT" property="userId"/>
<result column="person_photo_id" jdbcType="BIGINT" property="personPhotoId"/>
<result column="person_photo_url" jdbcType="VARCHAR" property="personPhotoUrl"/>
<result column="subtitle_enabled" jdbcType="INTEGER" property="subtitleEnabled"/>
<result column="subtitle_params" jdbcType="VARCHAR" property="subtitleParams"/>

<result column="voice_from" jdbcType="INTEGER" property="voiceFrom"/>
<result column="voice_mould_id" jdbcType="BIGINT" property="voiceMouldId"/>
<result column="voice_mould_sm" jdbcType="VARCHAR" property="voiceMouldSm"/>
@@ -39,7 +42,7 @@

<sql id="allColumns">
`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`
</sql>


Notiek ielāde…
Atcelt
Saglabāt