Files
my-spring/web-vue/packages/biz/api/biz/myAnalysis.ts
2026-03-29 12:46:36 +08:00

25 lines
844 B
TypeScript

/**
* 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 + '/desktop/analysis/getHostInfo' });
export const ProvinceChart = () =>
defHttp.get<ChartInfo[]>({ url: adminPath + '/desktop/analysis/getProvinceChart' });