This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user