|
|
@ -8,6 +8,7 @@ import org.hlrj.duobao_demo.service.ISpecialTopicService; |
|
|
|
import org.hlrj.duobao_demo.service.IVideoDataService; |
|
|
|
import org.hlrj.duobao_demo.tool.Result; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
@ -33,10 +34,17 @@ public class VideoDataController { |
|
|
|
@PostMapping("/api/selectVideoData") |
|
|
|
public Result selectVideoData() { |
|
|
|
|
|
|
|
log.info("查询全部的z直播广场内容");//日志记录 |
|
|
|
log.info("查询全部的直播广场内容");//日志记录 |
|
|
|
//查询全部数据 |
|
|
|
List<VideoData> videoData=iVideoDataService.select(); |
|
|
|
|
|
|
|
return Result.success(videoData); |
|
|
|
} |
|
|
|
@PostMapping("/api/deleteVideoData/{id}") |
|
|
|
public Result deleteVideoData(@PathVariable Integer id) { |
|
|
|
log.info("根据id删除直播:{}",id); |
|
|
|
|
|
|
|
iVideoDataService.delete(id); |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
} |