|
@@ -3,6 +3,7 @@ package com.xhkjedu.slive.controller.liveplay;
|
3
|
3
|
import com.github.pagehelper.PageHelper;
|
4
|
4
|
import com.github.pagehelper.PageInfo;
|
5
|
5
|
import com.xhkjedu.slive.model.liveplay.LCourse;
|
|
6
|
+import com.xhkjedu.slive.model.xz.LXz;
|
6
|
7
|
import com.xhkjedu.slive.service.liveplay.CourseService;
|
7
|
8
|
import com.xhkjedu.slive.vo.liveplay.CTypeVo;
|
8
|
9
|
import com.xhkjedu.slive.vo.liveplay.CourseParams;
|
|
@@ -259,4 +260,33 @@ public class CourseController {
|
259
|
260
|
courseService.handleStu(params);
|
260
|
261
|
return new ResultVo(0, "处理直播学生成功");
|
261
|
262
|
}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+ /**
|
|
266
|
+ * @Description 修改课程名称
|
|
267
|
+ * @Param [c]
|
|
268
|
+ * @Return com.xhkjedu.vo.ResultVo
|
|
269
|
+ * @Author wn
|
|
270
|
+ * @Date 2022/4/1 14:41
|
|
271
|
+ **/
|
|
272
|
+ @PostMapping("/upname")
|
|
273
|
+ public ResultVo updateCoursename(@RequestBody LCourse c){
|
|
274
|
+ N_Utils.validation(new Object[]{c.getCourseid(),"课程id",1,c.getCoursename(),"课程名称",2});
|
|
275
|
+ courseService.updateCoursename(c);
|
|
276
|
+ return new ResultVo(0, "成功修改课程名称");
|
|
277
|
+ }
|
|
278
|
+
|
|
279
|
+ /**
|
|
280
|
+ * @Description 修改课程简介
|
|
281
|
+ * @Param [c]
|
|
282
|
+ * @Return com.xhkjedu.vo.ResultVo
|
|
283
|
+ * @Author wn
|
|
284
|
+ * @Date 2022/4/1 14:41
|
|
285
|
+ **/
|
|
286
|
+ @PostMapping("/upcomm")
|
|
287
|
+ public ResultVo updateCoursecomm(@RequestBody LCourse c){
|
|
288
|
+ N_Utils.validation(new Object[]{c.getCourseid(),"课程id",1});
|
|
289
|
+ courseService.updateCoursecomm(c);
|
|
290
|
+ return new ResultVo(0, "成功修改课程简介");
|
|
291
|
+ }
|
262
|
292
|
}
|