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

@@ -1,61 +0,0 @@
import type { AccessControlVO, AccessControlForm, AccessControlQuery } 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 accessControlList(params?: AccessControlQuery) {
return requestClient.get<PageResult<AccessControlVO>>('/property/accessControl/list', { params });
}
/**
* 导出门禁管理列表
* @param params
* @returns 门禁管理列表
*/
export function accessControlExport(params?: AccessControlQuery) {
return commonExport('/property/accessControl/export', params ?? {});
}
/**
* 查询门禁管理详情
* @param id id
* @returns 门禁管理详情
*/
export function accessControlInfo(id: ID) {
return requestClient.get<AccessControlVO>(`/property/accessControl/${id}`);
}
/**
* 新增门禁管理
* @param data
* @returns void
*/
export function accessControlAdd(data: AccessControlForm) {
return requestClient.postWithMsg<void>('/property/accessControl', data);
}
/**
* 更新门禁管理
* @param data
* @returns void
*/
export function accessControlUpdate(data: AccessControlForm) {
return requestClient.putWithMsg<void>('/property/accessControl', data);
}
/**
* 删除门禁管理
* @param id id
* @returns void
*/
export function accessControlRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/property/accessControl/${id}`);
}

View File

@@ -1,234 +0,0 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface AccessControlVO {
/**
* 主键
*/
id: string | number;
/**
* 门禁设备编码
*/
accessCode: string;
/**
* 门禁名称
*/
accessName: string;
/**
* 园区编码
*/
communityCode: string;
/**
* 建筑编码
*/
buildingCode: string;
/**
* 门禁设备ip
*/
accessIp: string;
/**
* 端口
*/
accessPort: number;
/**
* 门禁设备类型
*/
accssType: number;
/**
* 工厂编码
*/
factoryCode: string;
/**
* 控制卡类型1-系统2-E8
*/
controlType: number;
/**
* 控制卡类型编码
*/
controlCode: string;
/**
* 外部编码
*/
outCode: string;
/**
* 组织编码
*/
orgCode: string;
/**
* 数据状态1有效0无效
*/
dataState: number;
/**
* 搜索值
*/
searchValue: string;
}
export interface AccessControlForm extends BaseEntity {
/**
* 主键
*/
id?: string | number;
/**
* 门禁设备编码
*/
accessCode?: string;
/**
* 门禁名称
*/
accessName?: string;
/**
* 园区编码
*/
communityCode?: string;
/**
* 建筑编码
*/
buildingCode?: string;
/**
* 门禁设备ip
*/
accessIp?: string;
/**
* 端口
*/
accessPort?: number;
/**
* 门禁设备类型
*/
accssType?: number;
/**
* 工厂编码
*/
factoryCode?: string;
/**
* 控制卡类型1-系统2-E8
*/
controlType?: number;
/**
* 控制卡类型编码
*/
controlCode?: string;
/**
* 外部编码
*/
outCode?: string;
/**
* 组织编码
*/
orgCode?: string;
/**
* 数据状态1有效0无效
*/
dataState?: number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface AccessControlQuery extends PageQuery {
/**
* 门禁设备编码
*/
accessCode?: string;
/**
* 门禁名称
*/
accessName?: string;
/**
* 园区编码
*/
communityCode?: string;
/**
* 建筑编码
*/
buildingCode?: string;
/**
* 门禁设备ip
*/
accessIp?: string;
/**
* 端口
*/
accessPort?: number;
/**
* 门禁设备类型
*/
accssType?: number;
/**
* 工厂编码
*/
factoryCode?: string;
/**
* 控制卡类型1-系统2-E8
*/
controlType?: number;
/**
* 控制卡类型编码
*/
controlCode?: string;
/**
* 外部编码
*/
outCode?: string;
/**
* 组织编码
*/
orgCode?: string;
/**
* 数据状态1有效0无效
*/
dataState?: number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -1,271 +0,0 @@
export interface AccessControlVO {
/**
* id
*/
id: string | number;
/**
* 门禁设备编码
*/
accessCode: string;
/**
* 门禁名称
*/
accessName: string;
/**
* 园区编码
*/
communityCode: string;
/**
* 建筑编码
*/
buildingCode: string;
/**
* 门禁设备ip
*/
accessIp: string;
/**
* 设备端口
*/
accessPort: number;
/**
* 门禁设备类型
*/
accssType: number;
/**
* 工程编号
*/
factoryCode: string;
/**
* 控制卡类型1-系统2-E8
*/
controlType: number;
/**
* 控制卡类型编码
*/
controlCode: string;
/**
* 外部编码
*/
outCode: string;
/**
* 组织编码
*/
orgCode: string;
/**
* 数据状态1有效0无效
*/
dataState: number;
/**
* 创建时间
*/
createTime: string;
/**
* 创建人
*/
createEmpId: string | number;
/**
* 修改时间
*/
modifyTime: string;
}
export interface AccessControlForm extends BaseEntity {
/**
* id
*/
id?: string | number;
/**
* 门禁设备编码
*/
accessCode?: string;
/**
* 门禁名称
*/
accessName?: string;
/**
* 园区编码
*/
communityCode?: string;
/**
* 建筑编码
*/
buildingCode?: string;
/**
* 门禁设备ip
*/
accessIp?: string;
/**
* 设备端口
*/
accessPort?: number;
/**
* 门禁设备类型
*/
accssType?: number;
/**
* 工程编号
*/
factoryCode?: string;
/**
* 控制卡类型1-系统2-E8
*/
controlType?: number;
/**
* 控制卡类型编码
*/
controlCode?: string;
/**
* 外部编码
*/
outCode?: string;
/**
* 组织编码
*/
orgCode?: string;
/**
* 数据状态1有效0无效
*/
dataState?: number;
/**
* 创建时间
*/
createTime?: string;
/**
* 创建人
*/
createEmpId?: string | number;
/**
* 修改时间
*/
modifyTime?: string;
}
export interface AccessControlQuery extends PageQuery {
/**
* id
*/
id?: string | number;
/**
* 门禁设备编码
*/
accessCode?: string;
/**
* 门禁名称
*/
accessName?: string;
/**
* 园区编码
*/
communityCode?: string;
/**
* 建筑编码
*/
buildingCode?: string;
/**
* 门禁设备ip
*/
accessIp?: string;
/**
* 设备端口
*/
accessPort?: number;
/**
* 门禁设备类型
*/
accssType?: number;
/**
* 工程编号
*/
factoryCode?: string;
/**
* 控制卡类型1-系统2-E8
*/
controlType?: number;
/**
* 控制卡类型编码
*/
controlCode?: string;
/**
* 外部编码
*/
outCode?: string;
/**
* 组织编码
*/
orgCode?: string;
/**
* 数据状态1有效0无效
*/
dataState?: number;
/**
* 创建时间
*/
createTime?: string;
/**
* 创建人
*/
createEmpId?: string | number;
/**
* 修改时间
*/
modifyTime?: string;
/**
* 日期范围参数
*/
params?: any;
}