增加视频监控页面
This commit is contained in:
61
apps/web-antd/src/api/sis/factory/index.ts
Normal file
61
apps/web-antd/src/api/sis/factory/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { FactoryVO, FactoryForm, FactoryQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询厂商管理列表
|
||||
* @param params
|
||||
* @returns 厂商管理列表
|
||||
*/
|
||||
export function factoryList(params?: FactoryQuery) {
|
||||
return requestClient.get<PageResult<FactoryVO>>('/sis/factory/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出厂商管理列表
|
||||
* @param params
|
||||
* @returns 厂商管理列表
|
||||
*/
|
||||
export function factoryExport(params?: FactoryQuery) {
|
||||
return commonExport('/sis/factory/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询厂商管理详情
|
||||
* @param id id
|
||||
* @returns 厂商管理详情
|
||||
*/
|
||||
export function factoryInfo(id: ID) {
|
||||
return requestClient.get<FactoryVO>(`/sis/factory/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增厂商管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function factoryAdd(data: FactoryForm) {
|
||||
return requestClient.postWithMsg<void>('/sis/factory', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新厂商管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function factoryUpdate(data: FactoryForm) {
|
||||
return requestClient.putWithMsg<void>('/sis/factory', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除厂商管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function factoryRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/sis/factory/${id}`);
|
||||
}
|
94
apps/web-antd/src/api/sis/factory/model.d.ts
vendored
Normal file
94
apps/web-antd/src/api/sis/factory/model.d.ts
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface FactoryVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 厂商编码
|
||||
*/
|
||||
factoryNo: string;
|
||||
|
||||
/**
|
||||
* 设备厂商名称
|
||||
*/
|
||||
factoryName: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FactoryForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 厂商编码
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商名称
|
||||
*/
|
||||
factoryName?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface FactoryQuery extends PageQuery {
|
||||
/**
|
||||
* 厂商编码
|
||||
*/
|
||||
factoryNo?: string;
|
||||
|
||||
/**
|
||||
* 设备厂商名称
|
||||
*/
|
||||
factoryName?: string;
|
||||
|
||||
/**
|
||||
* 数据状态:1有效,0无效
|
||||
*/
|
||||
dataState?: number;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
13
apps/web-antd/src/api/sis/stream/index.ts
Normal file
13
apps/web-antd/src/api/sis/stream/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { AddStreamProxyResult } from './model';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 添加拉流代理,如果成功会返回可播放的视频流地址
|
||||
* @param params
|
||||
* @returns 人像信息列表
|
||||
*/
|
||||
export function addStreamProxy(params?: any) {
|
||||
return requestClient.post<AddStreamProxyResult>('sis/stream//realtime/add', {
|
||||
params,
|
||||
});
|
||||
}
|
22
apps/web-antd/src/api/sis/stream/model.d.ts
vendored
Normal file
22
apps/web-antd/src/api/sis/stream/model.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export interface AddStreamProxyResult {
|
||||
key:string;
|
||||
rtsp:string;
|
||||
rtmp:string;
|
||||
flv:string;
|
||||
wsFlv:string;
|
||||
mp4:string;
|
||||
hls:string;
|
||||
}
|
||||
|
||||
export interface AddStreamProxyQuery {
|
||||
videoIp:string;
|
||||
videoPort:number;
|
||||
factoryNo:string;
|
||||
account:string;
|
||||
pwd:string;
|
||||
channelId:string;
|
||||
startTime:string;
|
||||
endTime:string;
|
||||
stream:string;
|
||||
|
||||
}
|
Reference in New Issue
Block a user