|
@@ -0,0 +1,30 @@
|
|
|
+package com.keao.edu.user.controller;
|
|
|
+
|
|
|
+import com.keao.edu.common.controller.BaseController;
|
|
|
+import com.keao.edu.common.entity.HttpResponseResult;
|
|
|
+import com.keao.edu.user.entity.ExamSong;
|
|
|
+import com.keao.edu.user.entity.Subject;
|
|
|
+import com.keao.edu.user.service.ExamSubjectService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("examSubject")
|
|
|
+@Api(tags = "考级内容服务")
|
|
|
+public class ExamSubjectController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ExamSubjectService examSubjectService;
|
|
|
+
|
|
|
+ @ApiOperation("查询曲库详情")
|
|
|
+ @ApiImplicitParam(name = "id", value = "机构ID", required = true, dataType = "Integer", paramType = "path")
|
|
|
+ @GetMapping(value = "/query")
|
|
|
+ public HttpResponseResult<List<Subject>> query(Integer ExamId) {
|
|
|
+ return succeed(examSubjectService.getExamSubjects(ExamId));
|
|
|
+ }
|
|
|
+}
|