| | |
| | | |
| | | import com.mindskip.xzs.base.RestResponse; |
| | | import com.mindskip.xzs.domain.vo.VideoStudentDto; |
| | | import com.mindskip.xzs.domain.vo.VideoStudentListVO; |
| | | import com.mindskip.xzs.domain.vo.VideoStudentVO; |
| | | import com.mindskip.xzs.service.IVideoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.xml.ws.Response; |
| | | import java.util.List; |
| | | |
| | | @RestController("VideoController") |
| | | @RequestMapping(value = "/api/admin/video") |
| | |
| | | @Autowired |
| | | private IVideoService videoService; |
| | | |
| | | @GetMapping("/clear") |
| | | @PostMapping("/clear") |
| | | public RestResponse clear(){ |
| | | videoService.clear(); |
| | | return RestResponse.ok(); |
| | |
| | | VideoStudentVO videoStudentVO = videoService.showButton(id); |
| | | return RestResponse.ok(videoStudentVO); |
| | | } |
| | | |
| | | @GetMapping("/getList") |
| | | public RestResponse getList(){ |
| | | List<VideoStudentListVO> res = videoService.getStudentVideoList(); |
| | | return RestResponse.ok(res); |
| | | } |
| | | } |