|
|
|
@ -8,6 +8,8 @@ import org.springframework.http.ResponseEntity; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@RestController |
|
|
|
@ -16,6 +18,15 @@ public class IvsCameraController { |
|
|
|
@Resource |
|
|
|
private IvsCameraService ivsCameraService; |
|
|
|
|
|
|
|
@GetMapping("/device/ptzpresetlist/{cameraCode}/{domainCode}") |
|
|
|
public ResponseEntity<IvsPresetListView> ptzPresetList(@PathVariable("cameraCode") String cameraCode, @PathVariable("domainCode") String domainCode) { |
|
|
|
log.info("PTZ_PRESET_LIST cameraCode : {}, domainCode: {}", cameraCode, domainCode); |
|
|
|
IvsPresetListView ivsPresetListView = ivsCameraService.ptzPresetList(cameraCode, domainCode); |
|
|
|
return ResponseEntity |
|
|
|
.ok() |
|
|
|
.body(ivsPresetListView); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping({"/device/ptzcontrol"}) |
|
|
|
public ResponseEntity<PtzControlResult> ptzControl(@RequestBody PtzControlParam param) { |
|
|
|
log.info("Ptz control request param: {}", param); |
|
|
|
|