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/SubjectController.java | 108 +++++++++++++++++++++++++++--------------------------- 1 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/controller/SubjectController.java b/src/main/java/com/qxueyou/scc/controller/SubjectController.java index b25bcab..88c0c9d 100644 --- a/src/main/java/com/qxueyou/scc/controller/SubjectController.java +++ b/src/main/java/com/qxueyou/scc/controller/SubjectController.java @@ -30,12 +30,12 @@ import io.swagger.annotations.ApiOperation; /** - * 课程管理控制器 + * 璇剧▼绠$悊鎺у埗鍣� * * @author chenjunliang * */ -@Api(tags = "课程管理-教师端") +@Api(tags = "璇剧▼绠$悊-鏁欏笀绔�") @RestController @RequestMapping(value = "/teach/subject") public class SubjectController { @@ -49,46 +49,46 @@ @Autowired private ITeacherService teacherService; - /**-------------------------------------------------------------------app接口------------------------------------------------------------------------------------------**/ + /**-------------------------------------------------------------------app鎺ュ彛------------------------------------------------------------------------------------------**/ /** - * 课程管理列表 + * 璇剧▼绠$悊鍒楄〃 * * @param keyword - * 索搜关键字 + * 绱㈡悳鍏抽敭瀛� * @param limit - * 显示几条 + * 鏄剧ず鍑犳潯 * @param pageNum - * 当前页码 + * 褰撳墠椤电爜 * @param status - * 状态 + * 鐘舵�� */ - @ApiOperation(value = "获取列表数据-教师端", notes = "") + @ApiOperation(value = "鑾峰彇鍒楄〃鏁版嵁-鏁欏笀绔�", notes = "") @ApiImplicitParams({ - @ApiImplicitParam(name = "status", value = "状态", required = false, paramType="query", dataType = "String"), - @ApiImplicitParam(name = "type", value = "类型(1:班级课程,3:公开课程)", required = false, paramType="query", dataType = "Integer") + @ApiImplicitParam(name = "status", value = "鐘舵��", required = false, paramType="query", dataType = "String"), + @ApiImplicitParam(name = "type", value = "绫诲瀷(1:鐝骇璇剧▼,3:鍏紑璇剧▼)", required = false, paramType="query", dataType = "Integer") }) @GetMapping(value = "/app/teacherSubjectList") public Result list(Pager pager, @RequestParam(defaultValue="")String keyword, String status, Integer type) { if(type == null) { - return new Result(false, "参数错误"); + return new Result(false, "鍙傛暟閿欒"); } return subjectService.teacherSubjectList(pager, keyword, status, type); } - /**-------------------------------------------------------------------后端接口------------------------------------------------------------------------------------------**/ + /**-------------------------------------------------------------------鍚庣鎺ュ彛------------------------------------------------------------------------------------------**/ /** - * 课程管理列表 + * 璇剧▼绠$悊鍒楄〃 * * @param keyword - * 索搜关键字 + * 绱㈡悳鍏抽敭瀛� * @param limit - * 显示几条 + * 鏄剧ず鍑犳潯 * @param pageNum - * 当前页码 + * 褰撳墠椤电爜 * @param status - * 状态 + * 鐘舵�� */ @GetMapping(value = "/list") public Result list(String keyword,String status,Integer type, Integer limit, Integer pageNum) { @@ -108,16 +108,16 @@ } /** - * 课程管理列表 + * 璇剧▼绠$悊鍒楄〃 * * @param keyword - * 索搜关键字 + * 绱㈡悳鍏抽敭瀛� * @param limit - * 显示几条 + * 鏄剧ず鍑犳潯 * @param pageNum - * 当前页码 + * 褰撳墠椤电爜 * @param status - * 状态 + * 鐘舵�� */ @GetMapping(value = "/listAllSimple") public Result listAllSimple() { @@ -129,9 +129,9 @@ } /** - * 课程发布 + * 璇剧▼鍙戝竷 * a - * @param 课程ids + * @param 璇剧▼ids */ @GetMapping(value = "/release") public Result release(String subjectIds) { @@ -141,10 +141,10 @@ } /** - * 课程下架 + * 璇剧▼涓嬫灦 * * @param subjectIds - * 课程ids + * 璇剧▼ids */ @GetMapping(value = "/soldOut") public Result soldOut(String subjectIds) { @@ -152,10 +152,10 @@ } /** - * 课程删除 + * 璇剧▼鍒犻櫎 * * @param subjectIds - * 课程ids + * 璇剧▼ids */ @GetMapping(value = "/delete") public Result delete(String subjectIds) { @@ -163,16 +163,16 @@ } /** - * 复制课程 + * 澶嶅埗璇剧▼ * * @param subjectId - * 课程id + * 璇剧▼id * @param subjectName - * 课程名称 + * 璇剧▼鍚嶇О * @param imgPath - * 图片url + * 鍥剧墖url * @param content - * 课程介绍 + * 璇剧▼浠嬬粛 */ @PostMapping(value = "/copy") public Result copy(String subjectId, String subjectName, String imgPath, String content,int type) { @@ -180,14 +180,14 @@ } /** - * 新增课程 + * 鏂板璇剧▼ * * @param subjectName - * 课程名称 + * 璇剧▼鍚嶇О * @param imgPath - * 图片url + * 鍥剧墖url * @param content - * 课程介绍 + * 璇剧▼浠嬬粛 * @return */ @PostMapping(value = "/add") @@ -209,16 +209,16 @@ } /** - * 新增练习 + * 鏂板缁冧範 * * @param name - * 题目名称 + * 棰樼洰鍚嶇О * @param type - * 题库类型 + * 棰樺簱绫诲瀷 * @param difficulty - * 难度系数 + * 闅惧害绯绘暟 * @param repeatFlag - * 是否重复 + * 鏄惁閲嶅 * @return */ @PostMapping(value = "addExercise") @@ -227,16 +227,16 @@ } /** - * 更新课程 + * 鏇存柊璇剧▼ * * @param subjectId - * 课程id + * 璇剧▼id * @param subjectName - * 课程名称 + * 璇剧▼鍚嶇О * @param imgPath - * 图片url + * 鍥剧墖url * @param content - * 课程介绍 + * 璇剧▼浠嬬粛 */ @PostMapping(value = "/update") public Result update(String subjectId, String subjectName, String imgPath, String content,int type) { @@ -256,14 +256,14 @@ } /** - * 更新课程获取课程内容 + * 鏇存柊璇剧▼鑾峰彇璇剧▼鍐呭 * * @param subjectId - * 课程id + * 璇剧▼id */ - @ApiOperation(value = "获取课程详情-教师端", notes = "") + @ApiOperation(value = "鑾峰彇璇剧▼璇︽儏-鏁欏笀绔�", notes = "") @ApiImplicitParams({ - @ApiImplicitParam(name = "subjectId", value = "课程id", required = false, paramType="query", dataType = "String") + @ApiImplicitParam(name = "subjectId", value = "璇剧▼id", required = false, paramType="query", dataType = "String") }) @GetMapping(value = "getSubjectDetail") public Result getSubjectDetail(String subjectId) { @@ -288,14 +288,14 @@ /** - * 获取可用课程下拉列表接口 + * 鑾峰彇鍙敤璇剧▼涓嬫媺鍒楄〃鎺ュ彛 * * @param examId * @return */ @RequestMapping(value = "/selectlist", method = RequestMethod.GET) public @ResponseBody List<Map<String,Object>> subjectList(Integer subjectType) { - //判断是否是教师 + //鍒ゆ柇鏄惁鏄暀甯� String teacherId = ClientUtils.isAdmin() ? null : teacherService.getTeacherIdByUserId(ClientUtils.getUserId()); if(subjectType==null){ -- Gitblit v1.8.0