package com.thhy.engineering.modules.biz.device.controller;
|
|
import com.thhy.engineering.modules.biz.device.service.VideoService;
|
import com.thhy.general.common.BasicResult;
|
import org.springframework.web.bind.annotation.*;
|
|
import javax.annotation.Resource;
|
import java.util.Map;
|
|
@RestController
|
@RequestMapping("/video")
|
public class VideoController {
|
|
@Resource
|
private VideoService videoService;
|
|
/**
|
* 视频添加
|
* @param values
|
* @return
|
*/
|
@PostMapping("/videoInsert")
|
public BasicResult videoInsert(@RequestBody Map<String,Object> values){
|
return videoService.videoInsert(values);
|
}
|
|
/**
|
* 视频列表
|
* @param values
|
* @return
|
*/
|
@PostMapping("/videoList")
|
public BasicResult videoList(@RequestBody Map<String,Object> values){
|
return videoService.videoList(values);
|
}
|
|
/**
|
* 视频详情
|
* @param videoId
|
* @return
|
*/
|
@GetMapping("/videoInfo")
|
public BasicResult videoInfo(@RequestParam String videoId){
|
return videoService.videoInfo(videoId);
|
}
|
|
/**
|
* 视频删除
|
* @param videoId
|
* @return
|
*/
|
@GetMapping("/videoDel")
|
public BasicResult videoDel(@RequestParam String videoId){
|
return videoService.videoDel(videoId);
|
}
|
/**
|
* 视频修改
|
* @param values
|
* @return
|
*/
|
@PostMapping("/videoUpdate")
|
public BasicResult videoUpdate(@RequestBody Map<String,Object> values){
|
return videoService.videoUpdate(values);
|
}
|
|
|
|
|
}
|