|
|
@@ -11,7 +11,11 @@ import com.zhongzheng.common.utils.ToolsUtils;
|
|
|
import com.zhongzheng.framework.web.service.WxLoginService;
|
|
|
import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
|
+import com.zhongzheng.modules.course.bo.CourseTopicGoodsQueryBo;
|
|
|
import com.zhongzheng.modules.course.service.ICourseService;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseTopicService;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseTopicGoodsVo;
|
|
|
+import com.zhongzheng.modules.course.vo.CourseTopicVo;
|
|
|
import com.zhongzheng.modules.course.vo.CourseUserVo;
|
|
|
import com.zhongzheng.modules.exam.bo.ExamActivityApplyBo;
|
|
|
import com.zhongzheng.modules.exam.bo.ExamActivityApplyVo;
|
|
|
@@ -54,6 +58,25 @@ public class CommonController extends BaseController {
|
|
|
|
|
|
private final IExamActivityService iExamActivityService;
|
|
|
|
|
|
+ private final ICourseTopicService iCourseTopicService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取商品专题页指定商品信息
|
|
|
+ */
|
|
|
+ @ApiOperation("获取商品专题页指定商品信息")
|
|
|
+ @GetMapping("/get/goodsInfo/{topicId}")
|
|
|
+ public AjaxResult<CourseTopicVo> getGoodsInfo(@PathVariable("topicId") Integer topicId) {
|
|
|
+ return AjaxResult.success(iCourseTopicService.getGoodsInfo(topicId));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取专题页组合班级商品
|
|
|
+ */
|
|
|
+ @ApiOperation("获取专题页组合班级商品")
|
|
|
+ @GetMapping("/get/goodsList")
|
|
|
+ public AjaxResult<List<CourseTopicGoodsVo>> getGoodsList(CourseTopicGoodsQueryBo bo) {
|
|
|
+ return AjaxResult.success(iCourseTopicService.getGoodsList(bo));
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 查询课程列表
|