物业代码生成
This commit is contained in:
61
apps/web-antd/src/api/property/accessControl/index.ts
Normal file
61
apps/web-antd/src/api/property/accessControl/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
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}`);
|
||||
}
|
209
apps/web-antd/src/api/property/accessControl/model.d.ts
vendored
Normal file
209
apps/web-antd/src/api/property/accessControl/model.d.ts
vendored
Normal file
@@ -0,0 +1,209 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AccessControlVO {
|
||||
/**
|
||||
* 门禁设备编码
|
||||
*/
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
export interface AccessControlForm extends BaseEntity {
|
||||
/**
|
||||
* 门禁设备编码
|
||||
*/
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user