项目初始化

This commit is contained in:
2026-03-26 15:57:14 +08:00
parent 9d974067b6
commit 1dff06a35a
10 changed files with 969 additions and 200 deletions

View File

@@ -0,0 +1,20 @@
/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author gaoxq
*/
import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { BasicModel } from '@jeesite/core/api/model/baseModel';
const { adminPath } = useGlobSetting();
export interface ChartInfo extends BasicModel<ChartInfo> {
key: string; // 指标Key
label: string; // 指标名称
value: number; // 指标数值
color: string; // 指标颜色
remark?: string; // 运行时长
}
export const HostInfoData = () => defHttp.get<ChartInfo[]>({ url: adminPath + '/sys/analysis/getHostInfo' });