190 lines
2.5 KiB
TypeScript
190 lines
2.5 KiB
TypeScript
import type { PageQuery, BaseEntity } from '#/api/common';
|
||
|
||
export interface LeaveApplicationVO {
|
||
/**
|
||
*
|
||
*/
|
||
id: string | number;
|
||
|
||
/**
|
||
* 用户ID,关联用户表
|
||
*/
|
||
userId: string | number;
|
||
|
||
/**
|
||
* 申请人姓名
|
||
*/
|
||
username: string;
|
||
|
||
/**
|
||
* 部门ID,关联部门表
|
||
*/
|
||
departmentId: string | number;
|
||
|
||
/**
|
||
* 部门名称
|
||
*/
|
||
departmentName: string;
|
||
|
||
/**
|
||
* 请假类型
|
||
*/
|
||
leaveType: number;
|
||
|
||
/**
|
||
* 开始时间
|
||
*/
|
||
startTime: string;
|
||
|
||
/**
|
||
* 结束时间
|
||
*/
|
||
endTime: string;
|
||
|
||
/**
|
||
* 合计时间,如3天5个小时
|
||
*/
|
||
totalDuration: string;
|
||
|
||
/**
|
||
* 请假事由
|
||
*/
|
||
reason: string;
|
||
|
||
/**
|
||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||
*/
|
||
status: number;
|
||
|
||
/**
|
||
* 搜索值
|
||
*/
|
||
searchValue: string;
|
||
|
||
}
|
||
|
||
export interface LeaveApplicationForm extends BaseEntity {
|
||
/**
|
||
*
|
||
*/
|
||
id?: string | number;
|
||
|
||
/**
|
||
* 用户ID,关联用户表
|
||
*/
|
||
userId?: string | number;
|
||
|
||
/**
|
||
* 申请人姓名
|
||
*/
|
||
username?: string;
|
||
|
||
/**
|
||
* 部门ID,关联部门表
|
||
*/
|
||
departmentId?: string | number;
|
||
|
||
/**
|
||
* 部门名称
|
||
*/
|
||
departmentName?: string;
|
||
|
||
/**
|
||
* 请假类型
|
||
*/
|
||
leaveType?: number;
|
||
|
||
/**
|
||
* 开始时间
|
||
*/
|
||
startTime?: string;
|
||
|
||
/**
|
||
* 结束时间
|
||
*/
|
||
endTime?: string;
|
||
|
||
/**
|
||
* 合计时间,如3天5个小时
|
||
*/
|
||
totalDuration?: string;
|
||
|
||
/**
|
||
* 请假事由
|
||
*/
|
||
reason?: string;
|
||
|
||
/**
|
||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||
*/
|
||
status?: number;
|
||
|
||
/**
|
||
* 搜索值
|
||
*/
|
||
searchValue?: string;
|
||
|
||
}
|
||
|
||
export interface LeaveApplicationQuery extends PageQuery {
|
||
/**
|
||
* 用户ID,关联用户表
|
||
*/
|
||
userId?: string | number;
|
||
|
||
/**
|
||
* 申请人姓名
|
||
*/
|
||
username?: string;
|
||
|
||
/**
|
||
* 部门ID,关联部门表
|
||
*/
|
||
departmentId?: string | number;
|
||
|
||
/**
|
||
* 部门名称
|
||
*/
|
||
departmentName?: string;
|
||
|
||
/**
|
||
* 请假类型
|
||
*/
|
||
leaveType?: number;
|
||
|
||
/**
|
||
* 开始时间
|
||
*/
|
||
startTime?: string;
|
||
|
||
/**
|
||
* 结束时间
|
||
*/
|
||
endTime?: string;
|
||
|
||
/**
|
||
* 合计时间,如3天5个小时
|
||
*/
|
||
totalDuration?: string;
|
||
|
||
/**
|
||
* 请假事由
|
||
*/
|
||
reason?: string;
|
||
|
||
/**
|
||
* 申请状态(1:'草稿',2:'待审批',3:'已批准',4:'已拒绝':5:'已取消')
|
||
*/
|
||
status?: number;
|
||
|
||
/**
|
||
* 搜索值
|
||
*/
|
||
searchValue?: string;
|
||
|
||
/**
|
||
* 日期范围参数
|
||
*/
|
||
params?: any;
|
||
}
|