增加门禁设备
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

This commit is contained in:
15683799673
2025-06-29 02:59:14 +08:00
parent 54cea19b78
commit ffb32c817a
25 changed files with 1004 additions and 116 deletions

View File

@@ -0,0 +1,61 @@
import type { DeviceManageVO, DeviceManageForm, DeviceManageQuery } 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 deviceManageList(params?: DeviceManageQuery) {
return requestClient.get<PageResult<DeviceManageVO>>('/sis/deviceManage/list', { params });
}
/**
* 导出设备管理列表
* @param params
* @returns 设备管理列表
*/
export function deviceManageExport(params?: DeviceManageQuery) {
return commonExport('/sis/deviceManage/export', params ?? {});
}
/**
* 查询设备管理详情
* @param id id
* @returns 设备管理详情
*/
export function deviceManageInfo(id: ID) {
return requestClient.get<DeviceManageVO>(`/sis/deviceManage/${id}`);
}
/**
* 新增设备管理
* @param data
* @returns void
*/
export function deviceManageAdd(data: DeviceManageForm) {
return requestClient.postWithMsg<void>('/sis/deviceManage', data);
}
/**
* 更新设备管理
* @param data
* @returns void
*/
export function deviceManageUpdate(data: DeviceManageForm) {
return requestClient.putWithMsg<void>('/sis/deviceManage', data);
}
/**
* 删除设备管理
* @param id id
* @returns void
*/
export function deviceManageRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/sis/deviceManage/${id}`);
}

View File

@@ -0,0 +1,249 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface DeviceManageVO {
/**
* 主键id
*/
id: string | number;
/**
* 设备编码
*/
deviceNo: string;
/**
* 设备名称
*/
deviceName: string;
/**
* 设备ip
*/
deviceIp: string;
/**
* 设备端口
*/
devicePort: number;
/**
* 设备账号
*/
deviceAccount: string;
/**
* 设备密码
*/
devicePwd: string;
/**
* 设备
*/
deviceMac: string;
/**
* 设备在线状态 0:离线 1:在线 2:未知
*/
deviceStatus: number;
/**
* 父级设备id
*/
parentId: string | number;
/**
* 设备通道编号
*/
channelNo: string;
/**
* 录像机ip
*/
vcrIp: string;
/**
* 录像机端口
*/
vcrPort: number;
/**
* 录像机账号
*/
vcrAccount: string;
/**
* 录像机密码
*/
vcrPwd: string;
/**
* 门禁id
*/
accessControlId: string | number;
}
export interface DeviceManageForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 设备编码
*/
deviceNo?: string;
/**
* 设备名称
*/
deviceName?: string;
/**
* 设备ip
*/
deviceIp?: string;
/**
* 设备端口
*/
devicePort?: number;
/**
* 设备账号
*/
deviceAccount?: string;
/**
* 设备密码
*/
devicePwd?: string;
/**
* 设备
*/
deviceMac?: string;
/**
* 设备在线状态 0:离线 1:在线 2:未知
*/
deviceStatus?: number;
/**
* 父级设备id
*/
parentId?: string | number;
/**
* 设备通道编号
*/
channelNo?: string;
/**
* 录像机ip
*/
vcrIp?: string;
/**
* 录像机端口
*/
vcrPort?: number;
/**
* 录像机账号
*/
vcrAccount?: string;
/**
* 录像机密码
*/
vcrPwd?: string;
/**
* 门禁id
*/
accessControlId?: string | number;
}
export interface DeviceManageQuery extends PageQuery {
/**
* 设备编码
*/
deviceNo?: string;
/**
* 设备名称
*/
deviceName?: string;
/**
* 设备ip
*/
deviceIp?: string;
/**
* 设备端口
*/
devicePort?: number;
/**
* 设备账号
*/
deviceAccount?: string;
/**
* 设备密码
*/
devicePwd?: string;
/**
* 设备
*/
deviceMac?: string;
/**
* 设备在线状态 0:离线 1:在线 2:未知
*/
deviceStatus?: number;
/**
* 父级设备id
*/
parentId?: string | number;
/**
* 设备通道编号
*/
channelNo?: string;
/**
* 录像机ip
*/
vcrIp?: string;
/**
* 录像机端口
*/
vcrPort?: number;
/**
* 录像机账号
*/
vcrAccount?: string;
/**
* 录像机密码
*/
vcrPwd?: string;
/**
* 门禁id
*/
accessControlId?: string | number;
/**
* 日期范围参数
*/
params?: any;
}