This commit is contained in:
@@ -89,6 +89,10 @@ export interface ArrangementForm extends BaseEntity {
|
||||
* 排班人员详情
|
||||
*/
|
||||
userGroupList: any[];
|
||||
/**
|
||||
* 排班id
|
||||
*/
|
||||
scheduleId: string | number;
|
||||
}
|
||||
|
||||
export interface ArrangementQuery extends PageQuery {
|
||||
|
@@ -0,0 +1,61 @@
|
||||
import type { AttendanceAreaVO, AttendanceAreaForm, AttendanceAreaQuery } 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 attendanceAreaList(params?: AttendanceAreaQuery) {
|
||||
return requestClient.get<PageResult<AttendanceAreaVO>>('/property/attendanceArea/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出区域区域管理列表
|
||||
* @param params
|
||||
* @returns 区域区域管理列表
|
||||
*/
|
||||
export function attendanceAreaExport(params?: AttendanceAreaQuery) {
|
||||
return commonExport('/property/attendanceArea/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询区域区域管理详情
|
||||
* @param id id
|
||||
* @returns 区域区域管理详情
|
||||
*/
|
||||
export function attendanceAreaInfo(id: ID) {
|
||||
return requestClient.get<AttendanceAreaVO>(`/property/attendanceArea/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增区域区域管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaAdd(data: AttendanceAreaForm) {
|
||||
return requestClient.postWithMsg<void>('/property/attendanceArea', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新区域区域管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaUpdate(data: AttendanceAreaForm) {
|
||||
return requestClient.putWithMsg<void>('/property/attendanceArea', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除区域区域管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function attendanceAreaRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/attendanceArea/${id}`);
|
||||
}
|
69
apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts
vendored
Normal file
69
apps/web-antd/src/api/property/attendanceManagement/attendanceArea/model.d.ts
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface AttendanceAreaVO {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface AttendanceAreaForm extends BaseEntity {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId?: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface AttendanceAreaQuery extends PageQuery {
|
||||
/**
|
||||
* 摄像机id
|
||||
*/
|
||||
deviceManageId?: string | number;
|
||||
|
||||
/**
|
||||
* 区域
|
||||
*/
|
||||
area?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
reamark?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user