feat(dept.d.ts): 添加部门API的TypeScript类型描述文件
This commit is contained in:
36
src/types/api/dept.d.ts
vendored
Normal file
36
src/types/api/dept.d.ts
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* 部门查询参数类型声明
|
||||||
|
*/
|
||||||
|
export interface DeptQueryParam {
|
||||||
|
name: string | undefined,
|
||||||
|
status: number | undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门列表项声明
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface DeptItem {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
parentId: number;
|
||||||
|
treePath: string;
|
||||||
|
sort: number;
|
||||||
|
status: number;
|
||||||
|
leader?: string;
|
||||||
|
mobile?: string;
|
||||||
|
email?: string;
|
||||||
|
children: DeptItem[];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 部门表单类型声明
|
||||||
|
*/
|
||||||
|
export interface DeptFormData {
|
||||||
|
id: number,
|
||||||
|
parentId: number,
|
||||||
|
name: string,
|
||||||
|
sort: number,
|
||||||
|
status: number
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user