|
@@ -11,7 +11,9 @@ import com.miaxis.common.utils.poi.ExcelUtil;
|
|
|
import com.miaxis.teachingDsp.domain.TeachingDspInfo;
|
|
|
import com.miaxis.teachingDsp.dto.TeachingDspInfoDto;
|
|
|
import com.miaxis.teachingDsp.service.ITeachingDspInfoService;
|
|
|
+import com.miaxis.teachingDsp.vo.TeachingDspInfoVo;
|
|
|
import com.miaxis.teachingVideo.dto.TeachingVideoInfoDto;
|
|
|
+import com.miaxis.teachingVideo.vo.TeachingVideoInfoVo;
|
|
|
import io.swagger.annotations.*;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -46,25 +48,13 @@ public class TeachingDspInfoController extends BaseController{
|
|
|
@ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
|
@ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
|
})
|
|
|
- public ResponsePageInfo<TeachingDspInfo> list(@ModelAttribute TeachingDspInfo teachingDspInfo){
|
|
|
+ public ResponsePageInfo<TeachingDspInfoVo> list(@ModelAttribute TeachingDspInfo teachingDspInfo){
|
|
|
startPage();
|
|
|
- List<TeachingDspInfo> list = teachingDspInfoService.selectTeachingDspInfoList(teachingDspInfo);
|
|
|
+ List<TeachingDspInfoVo> list = teachingDspInfoService.selectTeachingDspInfoList(teachingDspInfo);
|
|
|
return toResponsePageInfo(list);
|
|
|
}
|
|
|
|
|
|
|
|
|
- /**
|
|
|
- * 获取学车短视频详细信息
|
|
|
- */
|
|
|
- @PreAuthorize("@ss.hasPermi('teachingDsp:dsp:query')")
|
|
|
- @GetMapping(value = "/{id}")
|
|
|
- @ApiOperation("获取学车短视频详细信息")
|
|
|
- public Response<TeachingDspInfo> getInfo(
|
|
|
- @ApiParam(name = "id", value = "学车短视频参数", required = true)
|
|
|
- @PathVariable("id") Long id
|
|
|
- ){
|
|
|
- return Response.success(teachingDspInfoService.getById(id));
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
|
@@ -107,12 +97,12 @@ public class TeachingDspInfoController extends BaseController{
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 上架教学视频
|
|
|
+ * 上架短视频
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('teachingVideo:info:putShelf')")
|
|
|
- @Log(title = "教学视频", businessType = BusinessTypeEnum.UPDATE)
|
|
|
+ @Log(title = "上架短视频", businessType = BusinessTypeEnum.UPDATE)
|
|
|
@PutMapping("/putShelf/{ids}")
|
|
|
- @ApiOperation("上架教学视频")
|
|
|
+ @ApiOperation("上架短视频")
|
|
|
public Response putShelf(
|
|
|
@ApiParam(name = "ids", value = "教学视频ids参数", required = true) @PathVariable Long[] ids
|
|
|
){
|
|
@@ -123,9 +113,9 @@ public class TeachingDspInfoController extends BaseController{
|
|
|
* 下架短视频
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('teachingVideo:info:offShelf')")
|
|
|
- @Log(title = "教学视频", businessType = BusinessTypeEnum.UPDATE)
|
|
|
+ @Log(title = "下架短视频", businessType = BusinessTypeEnum.UPDATE)
|
|
|
@PutMapping("/offShelf/{ids}")
|
|
|
- @ApiOperation("下架教学视频")
|
|
|
+ @ApiOperation("下架短视频")
|
|
|
public Response offShelf(
|
|
|
@ApiParam(name = "ids", value = "教学视频ids参数", required = true) @PathVariable Long[] ids
|
|
|
){
|
|
@@ -134,11 +124,11 @@ public class TeachingDspInfoController extends BaseController{
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 封面上传
|
|
|
+ * 短视频封面上传
|
|
|
*/
|
|
|
- @Log(title = "教学视频", businessType = BusinessTypeEnum.INSERT)
|
|
|
+ @Log(title = "短视频封面上传", businessType = BusinessTypeEnum.INSERT)
|
|
|
@PutMapping("/coverUp")
|
|
|
- @ApiOperation("封面上传")
|
|
|
+ @ApiOperation("短视频封面上传")
|
|
|
public Response coverUp(MultipartFile coverFile,
|
|
|
@ApiParam(name = "fileId",value = "云点播fileId",required = true) @RequestParam("fileId") String fileId){
|
|
|
if (StringUtils.isEmpty(fileId)){
|
|
@@ -146,4 +136,18 @@ public class TeachingDspInfoController extends BaseController{
|
|
|
}
|
|
|
return teachingDspInfoService.coverUp(fileId,coverFile);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取短视频详细信息
|
|
|
+ */
|
|
|
+ @PreAuthorize("@ss.hasPermi('teachingDsp:info:query')")
|
|
|
+ @GetMapping(value = "/{id}")
|
|
|
+ @ApiOperation("获取短视频详细信息")
|
|
|
+ public Response<TeachingDspInfoVo> getInfo(
|
|
|
+ @ApiParam(name = "id", value = "获取短视频参数", required = true)
|
|
|
+ @PathVariable("id") Long id
|
|
|
+ ){
|
|
|
+ return teachingDspInfoService.getTeachingDspDetailsById(id);
|
|
|
+ }
|
|
|
+
|
|
|
}
|