|
@@ -5,6 +5,8 @@ import com.miaxis.common.core.controller.BaseController;
|
|
|
import com.miaxis.common.core.domain.Response;
|
|
|
import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
import com.miaxis.common.enums.BusinessTypeEnum;
|
|
|
+import com.miaxis.common.exception.CustomException;
|
|
|
+import com.miaxis.common.utils.StringUtils;
|
|
|
import com.miaxis.teachingVideo.domain.TeachingVideoInfo;
|
|
|
import com.miaxis.teachingVideo.dto.TeachingVideoInfoDto;
|
|
|
import com.miaxis.teachingVideo.service.ITeachingVideoInfoService;
|
|
@@ -92,6 +94,9 @@ public class TeachingVideoInfoController extends BaseController {
|
|
|
@ApiOperation("封面上传")
|
|
|
public Response coverUp(MultipartFile coverFile,
|
|
|
@ApiParam(name = "fileId",value = "云点播fileId",required = true) @RequestParam("fileId") String fileId){
|
|
|
+ if (StringUtils.isEmpty(fileId)){
|
|
|
+ throw new CustomException("视频文件未上传");
|
|
|
+ }
|
|
|
return teachingVideoInfoService.coverUp(fileId,coverFile);
|
|
|
}
|
|
|
|