zhengyiming
2025-04-17 60b9c62a3165f304a933cbac304ac3d43a24f722
packages/services/api/UserRole.ts
@@ -59,6 +59,14 @@
  });
}
/** 获取用户账号详情 GET /api/UserRole/GetBackClientUserInfo */
export async function getBackClientUserInfo(options?: API.RequestConfig) {
  return request<API.BackClientUserInfoOutput>('/api/UserRole/GetBackClientUserInfo', {
    method: 'GET',
    ...(options || {}),
  });
}
/** 后台管理账户列表 POST /api/UserRole/GetBackClientUsers */
export async function getBackClientUsers(
  body: API.GetBackClientUsersInput,
@@ -86,6 +94,21 @@
  });
}
/** 重置密码 POST /api/UserRole/ResetUserPassword */
export async function resetUserPassword(
  body: API.ResetPasswordBaseInput,
  options?: API.RequestConfig
) {
  return request<number>('/api/UserRole/ResetUserPassword', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 角色启用/禁用 POST /api/UserRole/RoleEnableOrForbid */
export async function roleEnableOrForbid(
  body: API.RoleEnableOrForbidInput,