Forráskód Böngészése

修改 VideoFile 和 VideoUrl 字段

reghao 2 éve
szülő
commit
cbe9ec963a

+ 1 - 3
dfs-store/src/main/java/cn/reghao/dfs/store/model/po/VideoFile.java

@@ -17,7 +17,6 @@ import lombok.Setter;
 @Getter
 public class VideoFile extends BaseObject<Integer> {
     private String videoFileId;
-    private String objectName;
     private Boolean horizontal;
     // 单位秒
     private Integer duration;
@@ -26,9 +25,8 @@ public class VideoFile extends BaseObject<Integer> {
     @Deprecated
     private String coverUrl;
 
-    public VideoFile(String videoFileId, String objectName, boolean horizontal, int duration) {
+    public VideoFile(String videoFileId, boolean horizontal, int duration) {
         this.videoFileId = videoFileId;
-        this.objectName = objectName;
         this.horizontal = horizontal;
         this.duration = duration;
         this.activate = false;

+ 3 - 3
dfs-store/src/main/java/cn/reghao/dfs/store/model/po/VideoUrl.java

@@ -15,16 +15,16 @@ import lombok.NoArgsConstructor;
 @Getter
 public class VideoUrl extends BaseObject<Integer> {
     private String videoFileId;
-    private String objectName;
+    private String objectId;
     private String urlType;
     private String url;
     private String quality;
     private Integer width;
     private Integer height;
 
-    public VideoUrl(String videoFileId, String objectName, String urlType, String url, MediaResolution mediaResolution) {
+    public VideoUrl(String videoFileId, String objectId, String urlType, String url, MediaResolution mediaResolution) {
         this.videoFileId = videoFileId;
-        this.objectName = objectName;
+        this.objectId = objectId;
         this.urlType = urlType;
         this.url = url;
         this.quality = mediaResolution.getQuality();

+ 2 - 2
dfs-store/src/main/resources/mapper/VideoFileMapper.xml

@@ -4,9 +4,9 @@
 <mapper namespace="cn.reghao.dfs.store.db.mapper.VideoFileMapper">
     <insert id="save" useGeneratedKeys="true" keyProperty="id">
         insert into video_file
-        (`id`,`deleted`,`create_time`,`update_time`,`video_file_id`,`object_name`,`horizontal`,`duration`,`activate`,`auth`)
+        (`id`,`deleted`,`create_time`,`update_time`,`video_file_id`,`horizontal`,`duration`,`activate`,`auth`)
         values 
-        (#{id},#{deleted},#{createTime},#{updateTime},#{videoFileId},#{objectName},#{horizontal},#{duration},#{activate},#{auth})
+        (#{id},#{deleted},#{createTime},#{updateTime},#{videoFileId},#{horizontal},#{duration},#{activate},#{auth})
     </insert>
 
     <select id="findAll" resultType="cn.reghao.dfs.store.model.po.VideoFile">

+ 2 - 2
dfs-store/src/main/resources/mapper/VideoUrlMapper.xml

@@ -4,9 +4,9 @@
 <mapper namespace="cn.reghao.dfs.store.db.mapper.VideoUrlMapper">
     <insert id="save" useGeneratedKeys="true" keyProperty="id">
         insert into video_url
-        (`video_file_id`,`object_name`,`url_type`,`width`,`height`,`quality`,`url`)
+        (`video_file_id`,`object_id`,`url_type`,`width`,`height`,`quality`,`url`)
         values
-        (#{videoFileId},#{objectName},#{urlType},#{width},#{height},#{quality},#{url})
+        (#{videoFileId},#{objectId},#{urlType},#{width},#{height},#{quality},#{url})
     </insert>
 
     <select id="findVideoUrls" resultType="cn.reghao.oss.api.dto.VideoUrlDto">