Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8b5f9bb5
authored
2025-07-06 19:02:07 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增官网地址
1 parent
2128d5ef
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
0 deletions
lego-core/src/main/java/com/lego/core/domin/Course.java
lego-core/src/main/java/com/lego/core/domin/bo/CourseBo.java
lego-core/src/main/java/com/lego/core/domin/vo/CourseVo.java
lego-core/src/main/java/com/lego/core/domin/vo/ResourceVo.java
lego-core/src/main/java/com/lego/core/domin/vo/SiteVo.java
lego-core/src/main/java/com/lego/core/service/impl/UpgradeServiceImpl.java
lego-core/src/main/java/com/lego/core/domin/Course.java
View file @
8b5f9bb
...
...
@@ -128,4 +128,9 @@ public class Course extends BaseEntity {
*/
private
Long
sort
;
/**
* 编程类型(0没有编程 1图标 2词语)
*/
private
String
programType
;
}
\ No newline at end of file
...
...
lego-core/src/main/java/com/lego/core/domin/bo/CourseBo.java
View file @
8b5f9bb
...
...
@@ -100,4 +100,9 @@ public class CourseBo extends BaseBO {
* 排序
*/
private
Long
sort
;
/**
* 编程类型(0没有编程 1图标 2词语)
*/
private
String
programType
;
}
\ No newline at end of file
...
...
lego-core/src/main/java/com/lego/core/domin/vo/CourseVo.java
View file @
8b5f9bb
...
...
@@ -155,4 +155,9 @@ public class CourseVo {
* 排序
*/
private
Long
sort
;
/**
* 编程类型(0没有编程 1图标 2词语)
*/
private
String
programType
;
}
\ No newline at end of file
...
...
lego-core/src/main/java/com/lego/core/domin/vo/ResourceVo.java
View file @
8b5f9bb
...
...
@@ -36,4 +36,6 @@ public class ResourceVo {
*/
private
List
<
QuestionVo
>
questions
;
private
SiteVo
site
;
}
...
...
lego-core/src/main/java/com/lego/core/domin/vo/SiteVo.java
0 → 100644
View file @
8b5f9bb
package
com
.
lego
.
core
.
domin
.
vo
;
import
lombok.Data
;
/**
* @author chentao
* @date 2025/7/6
*/
@Data
public
class
SiteVo
{
/**
* 主键
*/
private
String
url
;
}
lego-core/src/main/java/com/lego/core/service/impl/UpgradeServiceImpl.java
View file @
8b5f9bb
...
...
@@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.lego.common.core.page.TableDataInfo
;
import
com.lego.common.core.service.ConfigService
;
import
com.lego.common.core.service.OssService
;
import
com.lego.common.utils.DateUtils
;
import
com.lego.common.utils.MessageUtils
;
...
...
@@ -43,6 +44,7 @@ public class UpgradeServiceImpl implements IUpgradeService {
private
final
ICourseService
courseService
;
private
final
IQuestionService
questionService
;
private
final
ISysOssService
iSysOssService
;
private
final
ConfigService
configService
;
@Override
public
ResourceVo
list
()
{
...
...
@@ -64,6 +66,11 @@ public class UpgradeServiceImpl implements IUpgradeService {
resourceVo
.
setCourses
(
courses
);
String
siteUrl
=
configService
.
getConfigValue
(
"sys.site.url"
);
SiteVo
siteVo
=
new
SiteVo
();
siteVo
.
setUrl
(
siteUrl
);
resourceVo
.
setSite
(
siteVo
);
return
resourceVo
;
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment