|
@@ -7,14 +7,12 @@ import com.miaxis.common.core.domain.Response;
|
|
|
import com.miaxis.teachingVideo.domain.TeachingVideoTypeInfo;
|
|
|
import com.miaxis.teachingVideo.service.ITeachingVideoInfoService;
|
|
|
import com.miaxis.teachingVideo.service.ITeachingVideoTypeInfoService;
|
|
|
+import com.miaxis.teachingVideo.vo.TeachingVideoInfoVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* 【教学视频】Controller
|
|
@@ -49,6 +47,15 @@ public class AppletTeachingVideoInfoController extends BaseController {
|
|
|
return teachingVideoInfoService.queryTeachingVideoInfoList(pid);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/{id}")
|
|
|
+ @ApiOperation("获取教学视频详细信息")
|
|
|
+ public Response<TeachingVideoInfoVo> getInfo(
|
|
|
+ @ApiParam(name = "id", value = "教学视频参数", required = true)
|
|
|
+ @PathVariable("id") Long id
|
|
|
+ ){
|
|
|
+ return teachingVideoInfoService.getTeachingVideoDetailsById(id);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 关键字搜索教学视频
|