| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | 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; |
| | | |
| | |
| | | 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); |
| | |
| | | */ |
| | | @Log(title = "直播", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody LiveStreaming liveStreaming) |
| | | { |
| | | public AjaxResult add(@RequestBody LiveStreaming liveStreaming) throws ParseException { |
| | | return liveStreamingService.addData(liveStreaming); |
| | | } |
| | | } |