|
|
@@ -19,10 +19,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import vip.xiaonuo.common.annotation.CommonLog;
|
|
|
import vip.xiaonuo.common.pojo.CommonResult;
|
|
|
import vip.xiaonuo.common.pojo.CommonValidList;
|
|
|
@@ -36,6 +33,8 @@ import vip.xiaonuo.disk.service.CourseChapterKnowledgeService;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* COURSE_CHAPTER_KNOWLEDGE控制器
|
|
|
@@ -129,4 +128,35 @@ public class CourseChapterKnowledgeController {
|
|
|
return CommonResult.data(courseChapterKnowledgeService.detail(courseChapterKnowledgeIdParam));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据课程id查询每个知识点的学习人数
|
|
|
+ *
|
|
|
+ * @author pans
|
|
|
+ * @date 2025/08/04 17:14
|
|
|
+ */
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
+ @ApiOperation("获取COURSE_CHAPTER_KNOWLEDGE详情")
|
|
|
+ @GetMapping("/disk/chapterknowledge/selectKnowledgeByCourseId")
|
|
|
+ public CommonResult<List<Map<String,Object>>> selectKnowledgeByCourseId(@RequestParam(name = "courseId", required = true) String courseId) {
|
|
|
+ return CommonResult.data(courseChapterKnowledgeService.selectKnowledgeByCourseId(courseId));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据课程id和知识点查询每个知识点的学习人数列表
|
|
|
+ *
|
|
|
+ * @author pans
|
|
|
+ * @date 2025/08/04 17:14
|
|
|
+ */
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
+ @ApiOperation("获取COURSE_CHAPTER_KNOWLEDGE详情")
|
|
|
+ @GetMapping("/disk/chapterknowledge/selectKnowledgeListByCourseId")
|
|
|
+ public CommonResult<List<Map<String,Object>>> selectKnowledgeListByCourseId(@RequestParam(name = "courseId", required = true) String courseId,@RequestParam(name = "knowledgeId", required = true) String knowledgeId) {
|
|
|
+ return CommonResult.data(courseChapterKnowledgeService.selectKnowledgeListByCourseId(courseId,knowledgeId));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|