package com.cdf.controller.api; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.cdf.common.ResultData; import com.cdf.entity.Video; import com.cdf.service.IVideoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @RestController @RequestMapping("/api") public class VideoApiController { @Autowired private IVideoService videoService; @GetMapping("/getVideo") public ResultData getVideo(@RequestParam(required = false,defaultValue = "22") Integer deptId){ LambdaQueryWrapper