|
@@ -0,0 +1,43 @@
|
|
|
+package com.ym.mec.web.controller;
|
|
|
+
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
+import java.util.Objects;
|
|
|
+
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import com.ym.mec.biz.dal.page.ExtraExercilseQueryInfo;
|
|
|
+import com.ym.mec.biz.service.ExtracurricularExercisesReplyService;
|
|
|
+import com.ym.mec.biz.service.ExtracurricularExercisesService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+
|
|
|
+@Api(tags = "课外训练服务")
|
|
|
+@RequestMapping("extracurricularExercises")
|
|
|
+@RestController
|
|
|
+public class ExtracurricularExercisesController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ExtracurricularExercisesService extracurricularExercisesService;
|
|
|
+ @Autowired
|
|
|
+ private ExtracurricularExercisesReplyService extracurricularExercisesReplyService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取课外训练列表")
|
|
|
+ @GetMapping("/queryPageList")
|
|
|
+ private HttpResponseResult findExtraExercilses(ExtraExercilseQueryInfo queryInfo){
|
|
|
+ return succeed(extracurricularExercisesService.queryPage(queryInfo));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取课外训练详情")
|
|
|
+ @GetMapping("/findStudentExtraExerciseDetail")
|
|
|
+ private HttpResponseResult findStudentExtraExerciseDetail(Long studentExerciseId){
|
|
|
+ if(Objects.isNull(studentExerciseId)){
|
|
|
+ return failed("请选择课外训练作业");
|
|
|
+ }
|
|
|
+ return succeed(extracurricularExercisesReplyService.findStudentExtraExerciseDetail(studentExerciseId));
|
|
|
+ }
|
|
|
+}
|