Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
online-edu-backend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
online-edu
online-edu-backend
Commits
0517b07e
Commit
0517b07e
authored
Oct 11, 2021
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程支持url
parent
d854f06f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
0 deletions
+24
-0
VideoTypeEnum.java
src/main/java/com/qkdata/biz/enums/VideoTypeEnum.java
+6
-0
ResourcePO.java
...ain/java/com/qkdata/biz/management/entity/ResourcePO.java
+5
-0
CourseService.java
...java/com/qkdata/biz/management/service/CourseService.java
+0
-0
CourseChaperModel.java
.../java/com/qkdata/biz/management/vo/CourseChaperModel.java
+5
-0
SaveCourseChaperModel.java
...a/com/qkdata/biz/management/vo/SaveCourseChaperModel.java
+3
-0
V1.0.3__update.sql
src/main/resources/db/migration/V1.0.3__update.sql
+5
-0
No files found.
src/main/java/com/qkdata/biz/enums/VideoTypeEnum.java
0 → 100644
View file @
0517b07e
package
com
.
qkdata
.
biz
.
enums
;
public
enum
VideoTypeEnum
{
URL
,
ALI
;
}
src/main/java/com/qkdata/biz/management/entity/ResourcePO.java
View file @
0517b07e
package
com
.
qkdata
.
biz
.
management
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.qkdata.biz.enums.VideoTypeEnum
;
import
com.qkdata.common.base.entity.BasePO
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
...
...
@@ -44,6 +45,10 @@ public class ResourcePO extends BasePO {
* 视频时长
*/
private
Float
videoDuration
;
/**
* 视频类型
*/
private
VideoTypeEnum
videoType
;
}
src/main/java/com/qkdata/biz/management/service/CourseService.java
View file @
0517b07e
This diff is collapsed.
Click to expand it.
src/main/java/com/qkdata/biz/management/vo/CourseChaperModel.java
View file @
0517b07e
package
com
.
qkdata
.
biz
.
management
.
vo
;
import
com.qkdata.biz.enums.VideoTypeEnum
;
import
lombok.Data
;
@Data
...
...
@@ -37,4 +38,8 @@ public class CourseChaperModel {
* 视频时长
*/
private
Float
duration
;
/**
* 视频类型
*/
private
VideoTypeEnum
videoType
;
}
src/main/java/com/qkdata/biz/management/vo/SaveCourseChaperModel.java
View file @
0517b07e
package
com
.
qkdata
.
biz
.
management
.
vo
;
import
com.qkdata.biz.enums.VideoTypeEnum
;
import
lombok.Data
;
@Data
...
...
@@ -8,4 +9,6 @@ public class SaveCourseChaperModel {
private
String
name
;
private
Integer
sortNo
=
0
;
private
String
videoId
;
private
VideoTypeEnum
videoType
;
private
String
videoUrl
;
}
src/main/resources/db/migration/V1.0.3__update.sql
0 → 100644
View file @
0517b07e
ALTER
TABLE
`resource`
ADD
COLUMN
`video_type`
varchar
(
10
)
NULL
COMMENT
'视频类型'
AFTER
`update_time`
;
UPDATE
resource
SET
video_type
=
'ALI'
WHERE
video_id
is
NOT
NULL
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment