From f3195be73291effc55c3e35e623b82953cf1fc02 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 11 八月 2023 17:59:10 +0800 Subject: [PATCH] update 优化 整体代码结构 --- src/api/system/user/index.ts | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 21325c3..d0a4b5a 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -170,6 +170,17 @@ }; /** + * 鏌ヨ褰撳墠閮ㄩ棬鐨勬墍鏈夌敤鎴蜂俊鎭� + * @param deptId + */ +export const listUserByDeptId = (deptId: string | number): AxiosPromise<UserVO[]> => { + return request({ + url: '/system/user/list/dept/' + deptId, + method: 'get' + }); +}; + +/** * 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋� */ export const deptTreeSelect = (): AxiosPromise<DeptVO[]> => { @@ -193,5 +204,6 @@ uploadAvatar, getAuthRole, updateAuthRole, - deptTreeSelect + deptTreeSelect, + listUserByDeptId }; -- Gitblit v1.9.3