项目初始化
This commit is contained in:
20
web-vue/packages/biz/api/biz/myAnalysis.ts
Normal file
20
web-vue/packages/biz/api/biz/myAnalysis.ts
Normal 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' });
|
||||
Reference in New Issue
Block a user