增加门禁授权操作
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
15683799673
2025-06-30 06:16:40 +08:00
parent ffb32c817a
commit 285ac3e0ed
22 changed files with 219 additions and 2636 deletions

View File

@@ -1,18 +1,24 @@
import type { AccessControlVO, AccessControlForm, AccessControlQuery } from './model';
import type {
AccessControlForm,
AccessControlQuery,
AccessControlVO,
} from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import type { ID, IDS, PageResult, TreeNode } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询门禁管理列表
* @param params
* @returns 门禁管理列表
*/
* 查询门禁管理列表
* @param params
* @returns 门禁管理列表
*/
export function accessControlList(params?: AccessControlQuery) {
return requestClient.get<PageResult<AccessControlVO>>('/sis/accessControl/list', { params });
return requestClient.get<PageResult<AccessControlVO>>(
'/sis/accessControl/list',
{ params },
);
}
/**
@@ -59,3 +65,11 @@ export function accessControlUpdate(data: AccessControlForm) {
export function accessControlRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/sis/accessControl/${id}`);
}
/**
* 查询门禁书
* @returns void
*/
export function queryTree() {
return requestClient.get<TreeNode<Number>[]>(`/sis/accessControl/tree`);
}

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