From d26274d89d377067c1e2648192cffbf89464b361 Mon Sep 17 00:00:00 2001
From: wsj <593216709@qq.com>
Date: Wed, 28 Oct 2026 23:34:32 +0800
Subject: [PATCH] feat: 拆包
---
src/pages/system/departments/types.ts | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/pages/system/departments/types.ts b/src/pages/system/departments/types.ts
index c56653a..8f53413 100644
--- a/src/pages/system/departments/types.ts
+++ b/src/pages/system/departments/types.ts
@@ -72,10 +72,12 @@
/** PUT /tenant/organizations/{id}/toggle-status 响应数据(ResultVoid 的 data)。 */
export type TenantOrgToggleStatusResponse = void;
-/** GET /tenant/employees 请求参数(仅用于负责人下拉)。 */
+/** GET /tenant/employees 请求参数(负责人下拉远程搜索)。 */
export interface TenantEmployeeOptionListRequest {
page?: number;
size?: number;
+ /** 姓名 / 手机号模糊搜索。 */
+ keyword?: string;
}
/** 负责人选项(EmployeeVO 子集)。 */
@@ -88,6 +90,15 @@
/** GET /tenant/employees 响应数据(ResultPageResultEmployeeVO 的 data)。 */
export type TenantEmployeeOptionListResponse = PageResult<DepartmentLeaderOption>;
+/** GET /tenant/employees/{id} 请求参数(编辑时回填负责人姓名)。 */
+export interface DepartmentLeaderDetailRequest {
+ /** 员工 ID(路径参数)。 */
+ id: number;
+}
+
+/** GET /tenant/employees/{id} 响应数据(EmployeeVO 子集)。 */
+export type DepartmentLeaderDetailResponse = DepartmentLeaderOption;
+
/** ProTable 筛选参数:组织树接口没有查询参数,这些字段仅用于前端本地过滤。 */
export interface DepartmentListQuery {
orgName?: string;
--
Gitblit v1.9.3