| | |
| | | * 课程介绍 |
| | | */ |
| | | @PostMapping(value = "/copy") |
| | | public Result copy(String subjectId, String subjectName, String imgPath, String content,int type) { |
| | | return add(subjectName, imgPath, content,type); |
| | | public Result copy(String subjectId, String subjectName, String imgPath, String content,int type,String startTime,String endTime) { |
| | | return add(subjectName, imgPath, content,type,startTime,endTime); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/add") |
| | | public Result add(String subjectName, String imgPath, String content,int type) { |
| | | public Result add(String subjectName, String imgPath, String content,int type,String startTime,String endTime) { |
| | | String contentFileId = null; |
| | | |
| | | if(StringUtils.isNotEmpty(content)){ |
| | |
| | | coverPageFileId = fileService.readIdByPath(imgPath); |
| | | } |
| | | |
| | | return subjectService.add(subjectName, coverPageFileId,contentFileId,type); |
| | | return subjectService.add(subjectName, coverPageFileId,contentFileId,type,startTime,endTime); |
| | | } |
| | | |
| | | /** |