You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.5 KiB
57 lines
1.5 KiB
<?php
|
|
|
|
namespace App\Services\Api;
|
|
|
|
class CameraApiService extends BaseApiService
|
|
{
|
|
// 更新车位状态
|
|
protected string $CAMERA_STATUS = '/api/device/camera/getStatus';
|
|
// 控制车位相机灯光
|
|
protected string $CAMERA_COLOR_BODY = '/api/device/camera/getBody';
|
|
// 车辆进出车位
|
|
protected string $CAMERA_PLATE_NO = '/api/device/camera/vehicleEntry';
|
|
|
|
/**
|
|
* @return CameraApiService
|
|
*/
|
|
public static function query(): CameraApiService
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
// 获取车位相机设备变更颜色信息
|
|
public function getCameraBody(): array
|
|
{
|
|
return $this->getBody($this->CAMERA_COLOR_BODY);
|
|
}
|
|
|
|
// 返回变更车位相机设备状态接口
|
|
public function putCameraBody(array $data): array
|
|
{
|
|
return $this->putBody($this->CAMERA_COLOR_BODY, $data);
|
|
}
|
|
|
|
// 获取车位相机设备状态
|
|
public function getCameraStatus(): array
|
|
{
|
|
return $this->getBody($this->CAMERA_STATUS);
|
|
}
|
|
|
|
// 返回车位相机设备状态
|
|
public function putCameraStatus(array $data): array
|
|
{
|
|
return $this->putBody($this->CAMERA_STATUS, $data);
|
|
}
|
|
|
|
// 获取车位相机信息
|
|
public function getCameraPlateNoBody(): array
|
|
{
|
|
return $this->getBody($this->CAMERA_PLATE_NO);
|
|
}
|
|
|
|
// 获取车位相机信息
|
|
public function putCameraPlateNoBody(array $data): array
|
|
{
|
|
return $this->putBody($this->CAMERA_PLATE_NO, $data);
|
|
}
|
|
}
|
|
|