|
|
@@ -143,22 +143,145 @@ export interface UpdateViewLayoutParam {
|
|
|
viewType: ViewType;
|
|
|
}
|
|
|
|
|
|
-/** ??? */
|
|
|
-export type CameraItem = {
|
|
|
+/** 相机详情类型 */
|
|
|
+export interface CameraItem {
|
|
|
+ /*自增主键 */
|
|
|
id: number;
|
|
|
- /** 相机名称 */
|
|
|
+
|
|
|
+ /*车间id */
|
|
|
+ workshopId: number;
|
|
|
+
|
|
|
+ /*工位id */
|
|
|
+ workspaceId: number;
|
|
|
+
|
|
|
+ /*相机名称 */
|
|
|
name: string;
|
|
|
- /** 相机code */
|
|
|
+
|
|
|
+ /*相机编号 */
|
|
|
code: string;
|
|
|
- /** 相机IP地址 */
|
|
|
+
|
|
|
+ /*相机IP */
|
|
|
cameraIp: string;
|
|
|
- /** 相机描述 */
|
|
|
+
|
|
|
+ /*相机端口 */
|
|
|
+ cameraPort: string;
|
|
|
+
|
|
|
+ /*登录账号(用户名) */
|
|
|
+ username: string;
|
|
|
+
|
|
|
+ /*密码 */
|
|
|
+ password: string;
|
|
|
+
|
|
|
+ /*相机类型: haikang/dahua/anxus/huawei */
|
|
|
+ cameraType: string;
|
|
|
+
|
|
|
+ /*描述 */
|
|
|
remark: string;
|
|
|
- /** 状态: 0-启用, 1-禁用 */
|
|
|
- status?: number;
|
|
|
- /** 推流地址 */
|
|
|
- pushstreamIp?: string;
|
|
|
-};
|
|
|
+
|
|
|
+ /*相机是否支持移动缩放:0-不支持;1-支持 */
|
|
|
+ isPtz: number;
|
|
|
+
|
|
|
+ /*相机的ONVIF端口号 */
|
|
|
+ onvifPort: string;
|
|
|
+
|
|
|
+ /*添加方式: IP,NVR,RTSP */
|
|
|
+ sourceType: string;
|
|
|
+
|
|
|
+ /*rtsp地址 */
|
|
|
+ rtspUrl: string;
|
|
|
+
|
|
|
+ /*NVR id */
|
|
|
+ nvrId: number;
|
|
|
+
|
|
|
+ /*NVR通道号 */
|
|
|
+ nvrChannel: string;
|
|
|
+
|
|
|
+ /*视频编码标准,H264, H265 */
|
|
|
+ videoStandard: string;
|
|
|
+
|
|
|
+ /*视频服务类型,TCP, UDP, AUTO */
|
|
|
+ videoServiceType: string;
|
|
|
+
|
|
|
+ /*状态: 0-启用, 1-禁用 */
|
|
|
+ isDisabled: number;
|
|
|
+
|
|
|
+ /*创建人 */
|
|
|
+ createdBy: number;
|
|
|
+
|
|
|
+ /*更新人 */
|
|
|
+ updatedBy: number;
|
|
|
+
|
|
|
+ /*创建时间 */
|
|
|
+ createdAt: Record<string, unknown>;
|
|
|
+
|
|
|
+ /*更新时间 */
|
|
|
+ updatedAt: Record<string, unknown>;
|
|
|
+
|
|
|
+ /*0-未删除,大于0(时间戳)-已删除 */
|
|
|
+ isDeleted: number;
|
|
|
+
|
|
|
+ /*租户ID */
|
|
|
+ tenantId: number;
|
|
|
+
|
|
|
+ /*联网状态: 0-启用, 1-禁用 */
|
|
|
+ networkingState: number;
|
|
|
+
|
|
|
+ /*接入状态: 0-启用, 1-禁用 */
|
|
|
+ integrationState: number;
|
|
|
+
|
|
|
+ /*渲染选择,无渲染/某个算法 */
|
|
|
+ render: string;
|
|
|
+
|
|
|
+ /*版本 */
|
|
|
+ version: number;
|
|
|
+
|
|
|
+ /*扩展数据 */
|
|
|
+ extra: string;
|
|
|
+
|
|
|
+ /*业务场景 */
|
|
|
+ sceneTemplateList: {
|
|
|
+ /*场景id */
|
|
|
+ sceneId: number;
|
|
|
+
|
|
|
+ /*模板id */
|
|
|
+ templateId: number;
|
|
|
+
|
|
|
+ templateCode: string;
|
|
|
+ }[];
|
|
|
+
|
|
|
+ /* */
|
|
|
+ pushStreamDTO: {
|
|
|
+ /* */
|
|
|
+ videoUrls: {
|
|
|
+ /*推流地址(前端播放的地址) */
|
|
|
+ pushstreamIp: string;
|
|
|
+
|
|
|
+ /*渲染推流地址(前端播放的渲染地址) */
|
|
|
+ pushstreamRenderUrl: string;
|
|
|
+
|
|
|
+ /*ios推流地址(前端播放的地址) */
|
|
|
+ m3u8PushstreamIp: string;
|
|
|
+
|
|
|
+ /*ios推流地址(前端播放的地址) */
|
|
|
+ m3u8PushstreamRenderIp: string;
|
|
|
+
|
|
|
+ /*推流地址(前端播放的地址) */
|
|
|
+ pushstreamIpAbs: string;
|
|
|
+
|
|
|
+ /*渲染推流地址(前端播放的渲染地址) */
|
|
|
+ pushstreamRenderUrlAbs: string;
|
|
|
+
|
|
|
+ /*ios推流地址(前端播放的地址) */
|
|
|
+ m3u8PushstreamIpAbs: string;
|
|
|
+
|
|
|
+ /*ios推流地址(前端播放的地址) */
|
|
|
+ m3u8PushstreamRenderIpAbs: string;
|
|
|
+ };
|
|
|
+
|
|
|
+ /*摄像头实时记录的画面 */
|
|
|
+ imageUrl: string;
|
|
|
+ };
|
|
|
+}
|
|
|
export interface ShopMapCamera extends CameraItem {
|
|
|
isSet: number;
|
|
|
/** 工位名称 */
|