63 lines
2.4 KiB
TypeScript
63 lines
2.4 KiB
TypeScript
/**
|
|
* Copyright (c) 2013-Now http://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, Page } from '@jeesite/core/api/model/baseModel';
|
|
import { UploadApiResult } from '@jeesite/core/api/sys/upload';
|
|
import { UploadFileParams } from '@jeesite/types/axios';
|
|
import { AxiosProgressEvent } from 'axios';
|
|
|
|
const { ctxPath, adminPath } = useGlobSetting();
|
|
|
|
export interface BizMonitorHost extends BasicModel<BizMonitorHost> {
|
|
createTime?: string; // 记录时间
|
|
hostId?: string; // 唯一标识
|
|
hostname: string; // 主机名称
|
|
ipAddress: string; // IP地址
|
|
hostType: string; // 主机类型
|
|
hostOs: string; // 操作系统
|
|
ustatus: string; // 主机状态
|
|
lastOnlineTime?: string; // 监测运行时间
|
|
locationName: string; // 物理位置
|
|
locationType: string; // 地址类型
|
|
adminUser: string; // 管理人员
|
|
otherContact: string; // 联系方式
|
|
remark?: string; // 备注信息
|
|
updateTime?: string; // 更新时间
|
|
expiryDate: string; // 失效日期
|
|
ftenantId?: string; // 租户id
|
|
fflowId?: string; // 流程id
|
|
fflowTaskId?: string; // 流程任务主键
|
|
fflowState?: number; // 流程任务状态
|
|
}
|
|
|
|
export const bizMonitorHostList = (params?: BizMonitorHost | any) =>
|
|
defHttp.get<BizMonitorHost>({ url: adminPath + '/biz/monitorHost/list', params });
|
|
|
|
export const bizMonitorHostListData = (params?: BizMonitorHost | any) =>
|
|
defHttp.post<Page<BizMonitorHost>>({ url: adminPath + '/biz/monitorHost/listData', params });
|
|
|
|
export const bizMonitorHostForm = (params?: BizMonitorHost | any) =>
|
|
defHttp.get<BizMonitorHost>({ url: adminPath + '/biz/monitorHost/form', params });
|
|
|
|
export const bizMonitorHostSave = (params?: any, data?: BizMonitorHost | any) =>
|
|
defHttp.postJson<BizMonitorHost>({ url: adminPath + '/biz/monitorHost/save', params, data });
|
|
|
|
export const bizMonitorHostImportData = (
|
|
params: UploadFileParams,
|
|
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
|
) =>
|
|
defHttp.uploadFile<UploadApiResult>(
|
|
{
|
|
url: ctxPath + adminPath + '/biz/monitorHost/importData',
|
|
onUploadProgress,
|
|
},
|
|
params,
|
|
);
|
|
|
|
export const bizMonitorHostDelete = (params?: BizMonitorHost | any) =>
|
|
defHttp.get<BizMonitorHost>({ url: adminPath + '/biz/monitorHost/delete', params });
|