作者 钟来

plc终端本地文件管理功能

... ... @@ -163,7 +163,7 @@ public class ControlGkjController extends BaseController {
@ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"),
@ApiImplicitParam(name = "url", value = "url", required = true, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "name", value = "名称", required = true, dataType = "String", paramType = "query"),
@ApiImplicitParam(name = "name", value = "名称", required = true, dataType = "String", paramType = "pqueryath"),
})
@GetMapping("/upload/{deviceId}")
public AjaxResult upload(@PathVariable String deviceId,String url,String name) {
... ... @@ -184,7 +184,7 @@ public class ControlGkjController extends BaseController {
@ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"),
})
@GetMapping("/cameraStartStream/{deviceId}")
@PostMapping("/cameraStartStream/{deviceId}")
public AjaxResult camera(@PathVariable String deviceId,@RequestBody StartStream startStream) {
HostCommand hostCommand = new HostCommand();
hostCommand.setFunction("camera");
... ... @@ -203,7 +203,7 @@ public class ControlGkjController extends BaseController {
@ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"),
})
@GetMapping("/cameraStartStreamBySerial/{deviceId}")
@PostMapping("/cameraStartStreamBySerial/{deviceId}")
public AjaxResult cameraStartStreamBySerial(@PathVariable String deviceId,@RequestBody StartStreamBySerial startStreamBySerial) {
HostCommand hostCommand = new HostCommand();
hostCommand.setFunction("camera");
... ... @@ -222,7 +222,7 @@ public class ControlGkjController extends BaseController {
@ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"),
})
@GetMapping("/cameraStopStream/{deviceId}")
@PostMapping("/cameraStopStream/{deviceId}")
public AjaxResult cameraStopStream(@PathVariable String deviceId,@RequestBody StopStream stopStream) {
HostCommand hostCommand = new HostCommand();
hostCommand.setFunction("camera");
... ... @@ -241,7 +241,7 @@ public class ControlGkjController extends BaseController {
@ApiImplicitParams({
@ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"),
})
@GetMapping("/addCamera/{deviceId}")
@PostMapping("/addCamera/{deviceId}")
public AjaxResult cameraStopStream(@PathVariable String deviceId, @RequestBody AddCamera addCamera) {
HostCommand hostCommand = new HostCommand();
hostCommand.setFunction("camera");
... ...