feat: 用户管理新增导入

This commit is contained in:
xlsea
2025-05-08 17:47:53 +08:00
parent 5de60e2a83
commit 62460bba90
11 changed files with 243 additions and 26 deletions

View File

@ -58,6 +58,32 @@ export function fetchGetDeptTree() {
});
}
/** 重置用户密码 */
export function fetchResetUserPassword(userId: CommonType.IdType, password: string) {
return request<boolean>({
url: '/system/user/resetPwd',
method: 'put',
data: { userId, password }
});
}
/** 根据用户编号获取授权角色 */
export function fetchGetAuthRole(userId: CommonType.IdType) {
return request<Api.System.AuthRole>({
url: `/system/user/authRole/${userId}`,
method: 'get'
});
}
/** 用户授权角色 */
export function fetchAuthUserRole(userId: CommonType.IdType, roleIds: CommonType.IdType[]) {
return request<boolean>({
url: '/system/user/authRole',
method: 'put',
data: { userId, roleIds }
});
}
/** 修改用户基本信息 */
export function fetchUpdateUserProfile(data: Api.System.UserProfileOperateParams) {
return request<boolean>({