增加门禁设备
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

@@ -12,7 +12,7 @@ import { requestClient } from '#/api/request';
* @returns
*/
export function accessControlList(params?: AccessControlQuery) {
return requestClient.get<PageResult<AccessControlVO>>('/property/accessControl/list', { params });
return requestClient.get<PageResult<AccessControlVO>>('/sis/accessControl/list', { params });
}
/**
@@ -21,7 +21,7 @@ export function accessControlList(params?: AccessControlQuery) {
* @returns
*/
export function accessControlExport(params?: AccessControlQuery) {
return commonExport('/property/accessControl/export', params ?? {});
return commonExport('/sis/accessControl/export', params ?? {});
}
/**
@@ -30,7 +30,7 @@ export function accessControlExport(params?: AccessControlQuery) {
* @returns
*/
export function accessControlInfo(id: ID) {
return requestClient.get<AccessControlVO>(`/property/accessControl/${id}`);
return requestClient.get<AccessControlVO>(`/sis/accessControl/${id}`);
}
/**
@@ -39,7 +39,7 @@ export function accessControlInfo(id: ID) {
* @returns void
*/
export function accessControlAdd(data: AccessControlForm) {
return requestClient.postWithMsg<void>('/property/accessControl', data);
return requestClient.postWithMsg<void>('/sis/accessControl', data);
}
/**
@@ -48,7 +48,7 @@ export function accessControlAdd(data: AccessControlForm) {
* @returns void
*/
export function accessControlUpdate(data: AccessControlForm) {
return requestClient.putWithMsg<void>('/property/accessControl', data);
return requestClient.putWithMsg<void>('/sis/accessControl', data);
}
/**
@@ -57,5 +57,5 @@ export function accessControlUpdate(data: AccessControlForm) {
* @returns void
*/
export function accessControlRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/accessControl/${id}`);
return requestClient.deleteWithMsg<void>(`/sis/accessControl/${id}`);
}

View File

@@ -0,0 +1,61 @@
import type { AuthRecordVO, AuthRecordForm, AuthRecordQuery } 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 authRecordList(params?: AuthRecordQuery) {
return requestClient.get<PageResult<AuthRecordVO>>('/sis/authRecord/list', { params });
}
/**
* 导出授权记录列表
* @param params
* @returns 授权记录列表
*/
export function authRecordExport(params?: AuthRecordQuery) {
return commonExport('/sis/authRecord/export', params ?? {});
}
/**
* 查询授权记录详情
* @param id id
* @returns 授权记录详情
*/
export function authRecordInfo(id: ID) {
return requestClient.get<AuthRecordVO>(`/sis/authRecord/${id}`);
}
/**
* 新增授权记录
* @param data
* @returns void
*/
export function authRecordAdd(data: AuthRecordForm) {
return requestClient.postWithMsg<void>('/sis/authRecord', data);
}
/**
* 更新授权记录
* @param data
* @returns void
*/
export function authRecordUpdate(data: AuthRecordForm) {
return requestClient.putWithMsg<void>('/sis/authRecord', data);
}
/**
* 删除授权记录
* @param id id
* @returns void
*/
export function authRecordRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/sis/authRecord/${id}`);
}

View File

@@ -0,0 +1,54 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface AuthRecordVO {
/**
* 主键id
*/
id: string | number;
/**
* 人像id
*/
imgId: string | number;
/**
* 门禁id
*/
acdId: string | number;
}
export interface AuthRecordForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 人像id
*/
imgId?: string | number;
/**
* 门禁id
*/
acdId?: string | number;
}
export interface AuthRecordQuery extends PageQuery {
/**
* 人像id
*/
imgId?: string | number;
/**
* 门禁id
*/
acdId?: string | number;
/**
* 日期范围参数
*/
params?: any;
}

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;
}

View File

@@ -39,7 +39,7 @@ export function personLibImgInfo(id: ID) {
* @returns void
*/
export function personLibImgAdd(data: PersonLibImgForm) {
return requestClient.postWithMsg<void>('/sis/personLibImg', data);
return requestClient.postWithMsg<void>('/sis/personLibImg/add', data);
}
/**