| | |
| | | package com.ruoyi.web.controller.zhang; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.text.Convert; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.domain.LiveStreaming; |
| | | import com.ruoyi.service.LiveStreamingBackService; |
| | | import com.ruoyi.service.LiveStreamingService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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.*; |
| | | |
| | | import java.text.ParseException; |
| | | |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM; |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; |
| | |
| | | @RequestMapping("/zLiveStreamingBack") |
| | | public class LiveStreamingBackController extends BaseController { |
| | | @Autowired |
| | | private LiveStreamingService liveStreamingService; |
| | | private LiveStreamingBackService liveStreamingBackService; |
| | | |
| | | @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); |
| | | return liveStreamingBackService.selectDataList(liveStreaming, pageNum, pageSize); |
| | | } |
| | | /** |
| | | * 通过id获取直播回放详细信息 |
| | | */ |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(liveStreamingService.getById(id)); |
| | | return success(liveStreamingBackService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除会议记录 |
| | | */ |
| | | @Log(title = "直播回放", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return liveStreamingBackService.deleteData(ids); |
| | | } |
| | | |
| | | |
| | | } |