|
|
@@ -13,6 +13,10 @@ import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
|
import com.zhongzheng.modules.course.service.ICourseService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseUserVo;
|
|
|
+import com.zhongzheng.modules.exam.bo.ExamActivityApplyBo;
|
|
|
+import com.zhongzheng.modules.exam.bo.ExamActivityApplyVo;
|
|
|
+import com.zhongzheng.modules.exam.service.IExamActivityService;
|
|
|
+import com.zhongzheng.modules.exam.vo.ExamActivityVo;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsUserVo;
|
|
|
import com.zhongzheng.modules.order.domain.Printer;
|
|
|
import com.zhongzheng.modules.wx.bo.WxServerBody;
|
|
|
@@ -47,6 +51,8 @@ public class CommonController extends BaseController {
|
|
|
@Autowired
|
|
|
private RedisCache redisCache;
|
|
|
|
|
|
+ private final IExamActivityService iExamActivityService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 查询课程列表
|
|
|
@@ -77,6 +83,26 @@ public class CommonController extends BaseController {
|
|
|
return AjaxResult.success(Printer.num);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取活动信息
|
|
|
+ */
|
|
|
+ @ApiOperation("获取活动信息")
|
|
|
+ @GetMapping("/detail/{activityId}")
|
|
|
+ public AjaxResult<ExamActivityVo> getDetail(@PathVariable("activityId" ) Long activityId) {
|
|
|
+ ExamActivityVo vo = iExamActivityService.getDetail(activityId);
|
|
|
+ return AjaxResult.success(vo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 考试活动报名
|
|
|
+ */
|
|
|
+ @ApiOperation("考试活动报名")
|
|
|
+ @PostMapping("/launch")
|
|
|
+ public AjaxResult<ExamActivityApplyVo> applyActivity(@RequestBody ExamActivityApplyBo bo) {
|
|
|
+ ExamActivityApplyVo vo = iExamActivityService.applyActivity(bo);
|
|
|
+ return AjaxResult.success(vo);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("小程序配置")
|
|
|
@GetMapping("/config")
|
|
|
public AjaxResult<Map<String,Object>> config(ConfigQueryBo bo) {
|