Browse Source

500题视频接口 添加免费试看会员

花田厝 3 months ago
parent
commit
41a77e2f44

+ 10 - 0
jsjp-service/src/main/java/com/miaxis/video/domain/VideoFiveTeaching.java

@@ -69,6 +69,16 @@ public class VideoFiveTeaching extends BaseBusinessEntity {
     @ApiModelProperty(value = "排序")
     private Long videoOrder;
 
+    /** 观看模式 0:免费 1:试看20秒  2:会员 */
+    @Excel(name = "观看模式")
+    @TableField("permission")
+    @ApiModelProperty(value = "观看模式 0:免费 1:试看 2:会员")
+    private Integer permission;
 
+    /** 试看秒数 单位秒 */
+    @Excel(name = "试看秒数 单位秒")
+    @TableField("try_look_second")
+    @ApiModelProperty(value = "试看秒数 单位秒")
+    private Integer tryLookSecond;
 
 }

+ 9 - 0
jsjp-service/src/main/java/com/miaxis/video/dto/VideoFiveTeachingDto.java

@@ -1,5 +1,7 @@
 package com.miaxis.video.dto;
 
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.miaxis.common.annotation.Excel;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
@@ -47,6 +49,13 @@ public class VideoFiveTeachingDto {
     @ApiModelProperty(value = "视频排序")
     private Integer videoOrder;
 
+    /** 观看模式 0:免费 1:试看20秒  2:会员 */
+    @ApiModelProperty(value = "观看模式 0:免费 1:试看 2:会员")
+    private Integer permission;
+
+    /** 试看秒数 单位秒 */
+    @ApiModelProperty(value = "试看秒数 单位秒")
+    private Integer tryLookSecond;
 
 
 }

+ 4 - 0
jsjp-service/src/main/resources/mapper/video/VideoFiveTeachingMapper.xml

@@ -13,6 +13,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="state"    column="state"    />
         <result property="horizontal"    column="horizontal"    />
         <result property="videoOrder"    column="video_order"    />
+        <result property="permission"    column="permission"    />
+        <result property="tryLookSecond"    column="try_look_second"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateTime"    column="update_time"    />
     </resultMap>
@@ -31,6 +33,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="state != null "> and state = #{state}</if>
             <if test="horizontal != null "> and horizontal = #{horizontal}</if>
             <if test="videoOrder != null "> and video_order = #{videoOrder}</if>
+            <if test="permission != null "> and permission = #{permission}</if>
+            <if test="tryLookSecond != null "> and try_look_second = #{horizontal}</if>
             order by video_order asc
         </where>
     </select>