deletePanelUser(userId: Object)

版本要求:
@ray-js/ray≥1.5.40
import { health } from '@ray-js/ray';

const { deletePanelUser } = health;

// Promise 调用
try {
  const res = await deletePanelUser({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

描述

删除面板用户

参数

属性类型必填说明
userIdstring是用户 ID

返回值

类型:Promise<boolean>

示例代码

基础用法

import { health } from '@ray-js/ray'

health.deletePanelUser({
  userId: 'user123',
}).then((success) => {
  console.log('删除结果:', success);
}).catch((error) => {
  console.error(error);
});