feat: 完成用户列表

This commit is contained in:
xlsea
2024-09-12 16:16:38 +08:00
parent 0a62e4dcaa
commit 85f6c31878
19 changed files with 618 additions and 37 deletions

View File

@ -34,3 +34,19 @@ export function fetchBatchDeleteUser(userIds: CommonType.IdType[]) {
method: 'delete'
});
}
/** 根据用户编号获取详细信息 */
export function fetchGetUserInfo(userId?: CommonType.IdType) {
return request<Api.System.UserInfo>({
url: `/system/user/${userId}`,
method: 'get'
});
}
/** 获取部门树列表 */
export function fetchGetDeptTree() {
return request<Api.Common.CommonTreeRecord>({
url: '/system/user/deptTree',
method: 'get'
});
}