新增官网地址
Showing
6 changed files
with
39 additions
and
0 deletions
| ... | @@ -128,4 +128,9 @@ public class Course extends BaseEntity { | ... | @@ -128,4 +128,9 @@ public class Course extends BaseEntity { |
| 128 | */ | 128 | */ |
| 129 | private Long sort; | 129 | private Long sort; |
| 130 | 130 | ||
| 131 | /** | ||
| 132 | * 编程类型(0没有编程 1图标 2词语) | ||
| 133 | */ | ||
| 134 | private String programType; | ||
| 135 | |||
| 131 | } | 136 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -100,4 +100,9 @@ public class CourseBo extends BaseBO { | ... | @@ -100,4 +100,9 @@ public class CourseBo extends BaseBO { |
| 100 | * 排序 | 100 | * 排序 |
| 101 | */ | 101 | */ |
| 102 | private Long sort; | 102 | private Long sort; |
| 103 | |||
| 104 | /** | ||
| 105 | * 编程类型(0没有编程 1图标 2词语) | ||
| 106 | */ | ||
| 107 | private String programType; | ||
| 103 | } | 108 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -155,4 +155,9 @@ public class CourseVo { | ... | @@ -155,4 +155,9 @@ public class CourseVo { |
| 155 | * 排序 | 155 | * 排序 |
| 156 | */ | 156 | */ |
| 157 | private Long sort; | 157 | private Long sort; |
| 158 | |||
| 159 | /** | ||
| 160 | * 编程类型(0没有编程 1图标 2词语) | ||
| 161 | */ | ||
| 162 | private String programType; | ||
| 158 | } | 163 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; | ... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 8 | import com.lego.common.core.page.TableDataInfo; | 8 | import com.lego.common.core.page.TableDataInfo; |
| 9 | import com.lego.common.core.service.ConfigService; | ||
| 9 | import com.lego.common.core.service.OssService; | 10 | import com.lego.common.core.service.OssService; |
| 10 | import com.lego.common.utils.DateUtils; | 11 | import com.lego.common.utils.DateUtils; |
| 11 | import com.lego.common.utils.MessageUtils; | 12 | import com.lego.common.utils.MessageUtils; |
| ... | @@ -43,6 +44,7 @@ public class UpgradeServiceImpl implements IUpgradeService { | ... | @@ -43,6 +44,7 @@ public class UpgradeServiceImpl implements IUpgradeService { |
| 43 | private final ICourseService courseService; | 44 | private final ICourseService courseService; |
| 44 | private final IQuestionService questionService; | 45 | private final IQuestionService questionService; |
| 45 | private final ISysOssService iSysOssService; | 46 | private final ISysOssService iSysOssService; |
| 47 | private final ConfigService configService; | ||
| 46 | 48 | ||
| 47 | @Override | 49 | @Override |
| 48 | public ResourceVo list() { | 50 | public ResourceVo list() { |
| ... | @@ -64,6 +66,11 @@ public class UpgradeServiceImpl implements IUpgradeService { | ... | @@ -64,6 +66,11 @@ public class UpgradeServiceImpl implements IUpgradeService { |
| 64 | 66 | ||
| 65 | resourceVo.setCourses(courses); | 67 | resourceVo.setCourses(courses); |
| 66 | 68 | ||
| 69 | String siteUrl = configService.getConfigValue("sys.site.url"); | ||
| 70 | SiteVo siteVo = new SiteVo(); | ||
| 71 | siteVo.setUrl(siteUrl); | ||
| 72 | resourceVo.setSite(siteVo); | ||
| 73 | |||
| 67 | return resourceVo; | 74 | return resourceVo; |
| 68 | } | 75 | } |
| 69 | 76 | ... | ... |
-
Please register or sign in to post a comment