From 068fc7f2e81178e55fa191a13709af64b1a163f6 Mon Sep 17 00:00:00 2001
From: EricsHu <hrr145632>
Date: 星期一, 05 十二月 2022 14:27:43 +0800
Subject: [PATCH] 处理编码

---
 src/main/java/com/qxueyou/scc/controller/CoursewareController.java |  140 +++++++++++++++++++++++-----------------------
 1 files changed, 70 insertions(+), 70 deletions(-)

diff --git a/src/main/java/com/qxueyou/scc/controller/CoursewareController.java b/src/main/java/com/qxueyou/scc/controller/CoursewareController.java
index 85d8290..2474063 100644
--- a/src/main/java/com/qxueyou/scc/controller/CoursewareController.java
+++ b/src/main/java/com/qxueyou/scc/controller/CoursewareController.java
@@ -33,12 +33,12 @@
 import io.swagger.annotations.ApiOperation;
 
 /**
- * 课件控制器
+ * 璇句欢鎺у埗鍣�
  *
  * @author chenjunliang
  *
  */
-@Api(tags = "课件管理-管理员端")
+@Api(tags = "璇句欢绠$悊-绠$悊鍛樼")
 @RestController
 @RequestMapping(value = "teach/courseware")
 public class CoursewareController {
@@ -56,10 +56,10 @@
 	IProgressService progressService;
 
 	/**
-	 * 加载课件tree
+	 * 鍔犺浇璇句欢tree
 	 *
 	 * @param parentId
-	 *            父节点id
+	 *            鐖惰妭鐐筰d
 	 */
 	@GetMapping(value = "categoryTree")
 	public Result categoryTree(String subjectId, String parentId) {
@@ -71,19 +71,19 @@
 	}
 
 	/**
-	 * 获取课件列表
+	 * 鑾峰彇璇句欢鍒楄〃
 	 *
 	 * @param chapterId
-	 *            章节id
+	 *            绔犺妭id
 	 * @param type
-	 *            课件类型
+	 *            璇句欢绫诲瀷
 	 * @param keyword
-	 *            搜索关键字
+	 *            鎼滅储鍏抽敭瀛�
 	 * @param limit
-	 *            每页显示几条
+	 *            姣忛〉鏄剧ず鍑犳潯
 	 * @param pageNum
-	 *            页码
-	 * @return 状态说明(0,视频。1,音频。2,文档。3,练习。)
+	 *            椤电爜
+	 * @return 鐘舵�佽鏄�(0,瑙嗛銆�1,闊抽銆�2,鏂囨。銆�3,缁冧範銆�)
 	 */
 	@GetMapping(value = "coursewareList")
 	public Result coursewareList(String chapterId, String type, String keyword, Integer limit, Integer pageNum) {
@@ -102,17 +102,17 @@
 	}
 
 	/**
-	 * 查看课件
+	 * 鏌ョ湅璇句欢
 	 *
 	 * @param id
-	 *            课件id
+	 *            璇句欢id
 	 * @param attribute
-	 *            扩展属性 video:"mp4:HD","m3u8:SD" 可不用传 audio:可不用传 doc:可不用传
+	 *            鎵╁睍灞炴�� video:"mp4:HD","m3u8:SD" 鍙笉鐢ㄤ紶 audio:鍙笉鐢ㄤ紶 doc:鍙笉鐢ㄤ紶
 	 */
-	@ApiOperation(value = "查看课件", notes = "")
+	@ApiOperation(value = "鏌ョ湅璇句欢", notes = "")
     @ApiImplicitParams({
-        @ApiImplicitParam(name = "id", value = "课件id", required = false, paramType="query", dataType = "String"),
-        @ApiImplicitParam(name = "attribute", value = "扩展属性 video:\"mp4:HD\",\"m3u8:SD\" 可不用传 audio:可不用传 doc:可不用传", required = false, paramType="query", dataType = "String"),
+        @ApiImplicitParam(name = "id", value = "璇句欢id", required = false, paramType="query", dataType = "String"),
+        @ApiImplicitParam(name = "attribute", value = "鎵╁睍灞炴�� video:\"mp4:HD\",\"m3u8:SD\" 鍙笉鐢ㄤ紶 audio:鍙笉鐢ㄤ紶 doc:鍙笉鐢ㄤ紶", required = false, paramType="query", dataType = "String"),
     })
 	@GetMapping(value = "showCourseware")
 	public Result showCourseware(String id, String attribute) {
@@ -127,10 +127,10 @@
 	}
 
 	/**
-	 * 删除课件
+	 * 鍒犻櫎璇句欢
 	 *
 	 * @param id
-	 *            课件ids
+	 *            璇句欢ids
 	 */
 	@GetMapping(value = "deleteCourseware")
 	public Result deleteCourseware(String id) {
@@ -142,20 +142,20 @@
 	}
 
 	/**
-	 * 课件的复制
+	 * 璇句欢鐨勫鍒�
 	 *
 	 * @param id
-	 *            课件id
+	 *            璇句欢id
 	 * @param type
-	 *            课件类型
+	 *            璇句欢绫诲瀷
 	 * @param chapterId
-	 *            章Id
+	 *            绔營d
 	 * @param sectionId
-	 *            节id
+	 *            鑺俰d
 	 * @param smallSectionId
-	 *            小节id
+	 *            灏忚妭id
 	 * @param name
-	 *            课件名称
+	 *            璇句欢鍚嶇О
 	 */
 	@GetMapping(value = "copy")
 	public Result copy(String id, String type, String subjectId, String chapterId, String name) {
@@ -163,18 +163,18 @@
 	}
 
 	/**
-	 * 课件的移动
+	 * 璇句欢鐨勭Щ鍔�
 	 *
 	 * @param id
-	 *            课件id
+	 *            璇句欢id
 	 * @param type
-	 *            课件类型
+	 *            璇句欢绫诲瀷
 	 * @param chapterId
-	 *            章Id
+	 *            绔營d
 	 * @param sectionId
-	 *            节id
+	 *            鑺俰d
 	 * @param smallSectionId
-	 *            小节id
+	 *            灏忚妭id
 	 */
 	@GetMapping(value = "move")
 	public Result moveCourseware(String id, String type, String subjectId, String chapterId, String name) {
@@ -182,18 +182,18 @@
 	}
 
 	/**
-	 * 课件管理 新增下级,同级
+	 * 璇句欢绠$悊 鏂板涓嬬骇锛屽悓绾�
 	 *
 	 * @param type
-	 *            (add:新增,edit :编辑)
+	 *            (add:鏂板,edit :缂栬緫)
 	 * @param chapterId
-	 *            章节id
+	 *            绔犺妭id
 	 * @param subjectId
-	 *            课程id
+	 *            璇剧▼id
 	 * @param name
-	 *            名称
+	 *            鍚嶇О
 	 * @param childFlag
-	 *            是否操作下级
+	 *            鏄惁鎿嶄綔涓嬬骇
 	 *
 	 */
 	@PostMapping(value = "addOrUpdateChapter")
@@ -211,10 +211,10 @@
 	}
 
 	/**
-	 * 课件管理 目录删除
+	 * 璇句欢绠$悊 鐩綍鍒犻櫎
 	 *
 	 * @param chapterId
-	 *            目录id
+	 *            鐩綍id
 	 */
 	@GetMapping(value = "deleteChapter")
 	public Result deleteChapter(String chapterId) {
@@ -222,24 +222,24 @@
 	}
 
 	/**
-	 * 添加/更新(视频,讲义,音频)
+	 * 娣诲姞/鏇存柊(瑙嗛锛岃涔夛紝闊抽)
 	 *
 	 * @param name
-	 *            名称
+	 *            鍚嶇О
 	 * @param coverUrl
-	 *            封面Url
+	 *            灏侀潰Url
 	 * @param remark:
 	 *            <p>
-	 *            视频啊啊啊
+	 *            瑙嗛鍟婂晩鍟�
 	 *            </p>
-	 *            介绍
+	 *            浠嬬粛
 	 *
 	 * @param id
-	 *            课件id
+	 *            璇句欢id
 	 * @param sectionId
-	 *            小节Id
+	 *            灏忚妭Id
 	 * @param type
-	 * @return 状态说明(0,视频。1,音频。2,文档。3,练习。)
+	 * @return 鐘舵�佽鏄�(0,瑙嗛銆�1,闊抽銆�2,鏂囨。銆�3,缁冧範銆�)
 	 */
 	@PostMapping(value = "addOrUpdate")
 	public Result addOrUpdate(String id, String remark, String name, String coverUrl, String type, String fileId,
@@ -263,10 +263,10 @@
 	}
 
 	/**
-	 * 编辑 获取内容
+	 * 缂栬緫 鑾峰彇鍐呭
 	 *
 	 * @param id
-	 *            课件id
+	 *            璇句欢id
 	 */
 	@GetMapping(value = "getCoursewareDetail")
 	public Result getCoursewareDetail(String id) {
@@ -282,15 +282,15 @@
 	}
 
 	/**
-	 * 课件获取资源列表
+	 * 璇句欢鑾峰彇璧勬簮鍒楄〃
 	 *
 	 * @param dirId
-	 *            目录Id
+	 *            鐩綍Id
 	 * @param limit
-	 *            每页显示几条
+	 *            姣忛〉鏄剧ず鍑犳潯
 	 * @param pageNum
-	 *            页码
-	 * @return 状态说明(0,视频。1,音频。2,文档。3,练习。)
+	 *            椤电爜
+	 * @return 鐘舵�佽鏄�(0,瑙嗛銆�1,闊抽銆�2,鏂囨。銆�3,缁冧範銆�)
 	 */
 	@GetMapping(value = "getResLst")
 	public Result getResLst(String dirId, Integer limit, Integer pageNum, String keyword) {
@@ -305,12 +305,12 @@
 	}
 
 	/**
-	 * 课件从资源选择后保存
+	 * 璇句欢浠庤祫婧愰�夋嫨鍚庝繚瀛�
 	 *
 	 * @param resId
-	 *            资源文件id
+	 *            璧勬簮鏂囦欢id
 	 * @param sectionId
-	 *            小节id
+	 *            灏忚妭id
 	 *
 	 */
 	@GetMapping(value = "saveCourseware4Res")
@@ -329,27 +329,27 @@
 	}
 
 	/**
-	 * 获取练习成绩列表
+	 * 鑾峰彇缁冧範鎴愮哗鍒楄〃
 	 *
 	 * @param subjectId
-	 *            课程id
+	 *            璇剧▼id
 	 * @param exerciseId
-	 *            练习id
+	 *            缁冧範id
 	 * @param pageSize
-	 *            每页显示几条
+	 *            姣忛〉鏄剧ず鍑犳潯
 	 * @param pageNum
-	 *            页码
+	 *            椤电爜
 	 *
 	 */
 	@GetMapping(value = "lstExerciseScore")
 	public Result lstExerciseScore(String subjectId, String exerciseId, Integer pageSize, Integer pageNum) {
 		Map<String, Object> lstExerciseGradeOne = CollectionUtils.newObjectMap("studentNumber", 201342, "studentName",
-				"李刚1", "className", "catti", "mockTime", new Date(), "status", 1, "score", 60, // status 0 表示未提交,1是已提交
-				"passingFlag", 1);// passingFlag 1,true,0 false
+				"鏉庡垰1", "className", "catti", "mockTime", new Date(), "status", 1, "score", 60, // status 0 琛ㄧず鏈彁浜わ紝1鏄凡鎻愪氦
+				"passingFlag", 1);// passingFlag 1锛宼rue,0 false
 		Map<String, Object> lstExerciseGradeTwo = CollectionUtils.newObjectMap("studentNumber", 201342, "studentName",
-				"李刚2", "className", "catti", "mockTime", new Date(), "status", 0, "score", 70, "passingFlag", 0);
+				"鏉庡垰2", "className", "catti", "mockTime", new Date(), "status", 0, "score", 70, "passingFlag", 0);
 		Map<String, Object> lstExerciseGradeThree = CollectionUtils.newObjectMap("studentNumber", 201342, "studentName",
-				"李刚3", "className", "catti", "mockTime", new Date(), "status", 1, "score", 80, "passingFlag", 1);
+				"鏉庡垰3", "className", "catti", "mockTime", new Date(), "status", 1, "score", 80, "passingFlag", 1);
 		return new Result(true, "success",
 				CollectionUtils.newObjectMap("scoreLst",
 						CollectionUtils.newList(lstExerciseGradeOne, lstExerciseGradeTwo, lstExerciseGradeThree),
@@ -357,11 +357,11 @@
 	}
 
 	/**
-	 * 练习成绩的导出
+	 * 缁冧範鎴愮哗鐨勫鍑�
 	 *
 	 * @param subjectId
-	 *            课程id
-	 * @param exerciseId练习id
+	 *            璇剧▼id
+	 * @param exerciseId缁冧範id
 	 */
 	@GetMapping(value = "exportScore")
 	public Result exportScore(String subjectId, String exerciseId) {

--
Gitblit v1.8.0