| | |
| | | import com.qxueyou.scc.teach.subject.model.Subject; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.qxueyou.scc.admin.progress.model.Progress; |
| | | import com.qxueyou.scc.admin.progress.service.IProgressService; |
| | |
| | | */ |
| | | @Api(tags = "课件管理-管理员端") |
| | | @RestController |
| | | @CrossOrigin(origins="*",maxAge=3600) |
| | | @RequestMapping(value = "teach/courseware") |
| | | public class CoursewareController { |
| | | |
| | |
| | | public Result deleteCourseware(String id) { |
| | | |
| | | Result result = lectureService.deleteLecture(id.split(",")); |
| | | lectureService.deleteLectureLoad(id.split(",")); |
| | | // lectureService.deleteLectureLoad(id.split(",")); |
| | | return result; |
| | | |
| | | } |
| | |
| | | result = lectureService.addLecture(sectionId, resId_); |
| | | successCount = result.isSuccess() ? 1 : 0; |
| | | } |
| | | lectureService.addLectureLoad(sectionId); |
| | | |
| | | return new Result(true, null, successCount); |
| | | } |
| | | |