| | |
| | | private LiveStreamingService liveStreamingService; |
| | | |
| | | @GetMapping("/all") |
| | | public AjaxResult listAll(LiveStreaming liveStreaming){ |
| | | public AjaxResult listAll(LiveStreaming liveStreaming) throws ParseException { |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | return liveStreamingService.selectDataList(liveStreaming, pageNum, pageSize); |
| | |
| | | public AjaxResult add(@RequestBody LiveStreaming liveStreaming) throws ParseException { |
| | | return liveStreamingService.addData(liveStreaming); |
| | | } |
| | | /** |
| | | * 批量删除直播 |
| | | */ |
| | | @Log(title = "直播", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return liveStreamingService.deleteData(ids); |
| | | } |
| | | |
| | | } |