소스 검색

删除 VideoFile 字段

reghao 2 년 전
부모
커밋
6c18e4f634

+ 0 - 5
dfs-store/src/main/java/cn/reghao/dfs/store/model/po/VideoFile.java

@@ -1,6 +1,5 @@
 package cn.reghao.dfs.store.model.po;
 
-import cn.reghao.oss.api.dto.VideoInfo;
 import cn.reghao.jutil.jdk.db.BaseObject;
 import lombok.Getter;
 import lombok.NoArgsConstructor;
@@ -20,14 +19,10 @@ public class VideoFile extends BaseObject<Integer> {
     private Boolean horizontal;
     // 单位秒
     private Integer duration;
-    private Boolean activate;
-    private Boolean auth;
 
     public VideoFile(String videoFileId, boolean horizontal, int duration) {
         this.videoFileId = videoFileId;
         this.horizontal = horizontal;
         this.duration = duration;
-        this.activate = false;
-        this.auth = true;
     }
 }

+ 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`,`horizontal`,`duration`,`activate`,`auth`)
+        (`id`,`deleted`,`create_time`,`update_time`,`video_file_id`,`horizontal`,`duration`)
         values 
-        (#{id},#{deleted},#{createTime},#{updateTime},#{videoFileId},#{horizontal},#{duration},#{activate},#{auth})
+        (#{id},#{deleted},#{createTime},#{updateTime},#{videoFileId},#{horizontal},#{duration})
     </insert>
 
     <select id="findAll" resultType="cn.reghao.dfs.store.model.po.VideoFile">

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

@@ -9,6 +9,10 @@
         (#{videoFileId},#{objectId},#{urlType},#{width},#{height},#{quality},#{url})
     </insert>
 
+    <select id="findAll" resultType="cn.reghao.dfs.store.model.po.VideoUrl">
+        select *
+        from video_url
+    </select>
     <select id="findVideoUrls" resultType="cn.reghao.oss.api.dto.VideoUrlDto">
         select url_type as type,url,width,height,quality
         from video_url