修改
This commit is contained in:
51
web-vue/packages/biz/api/biz/deviceInfo.ts
Normal file
51
web-vue/packages/biz/api/biz/deviceInfo.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* 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 BizDeviceInfo extends BasicModel<BizDeviceInfo> {
|
||||
createTime?: string; // 记录时间
|
||||
device: string; // 设备名称
|
||||
mountPoint: string; // 挂载点
|
||||
totalSize: string; // 总容量
|
||||
usedSize: string; // 已使用容量
|
||||
usageRate: number; // 使用率(%)
|
||||
lastOnlineTime: string; // 最后一次检测时间
|
||||
hostId: string; // 主机标识
|
||||
}
|
||||
|
||||
export const bizDeviceInfoList = (params?: BizDeviceInfo | any) =>
|
||||
defHttp.get<BizDeviceInfo>({ url: adminPath + '/biz/deviceInfo/list', params });
|
||||
|
||||
export const bizDeviceInfoListData = (params?: BizDeviceInfo | any) =>
|
||||
defHttp.post<Page<BizDeviceInfo>>({ url: adminPath + '/biz/deviceInfo/listData', params });
|
||||
|
||||
export const bizDeviceInfoForm = (params?: BizDeviceInfo | any) =>
|
||||
defHttp.get<BizDeviceInfo>({ url: adminPath + '/biz/deviceInfo/form', params });
|
||||
|
||||
export const bizDeviceInfoSave = (params?: any, data?: BizDeviceInfo | any) =>
|
||||
defHttp.postJson<BizDeviceInfo>({ url: adminPath + '/biz/deviceInfo/save', params, data });
|
||||
|
||||
export const bizDeviceInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/deviceInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizDeviceInfoDelete = (params?: BizDeviceInfo | any) =>
|
||||
defHttp.get<BizDeviceInfo>({ url: adminPath + '/biz/deviceInfo/delete', params });
|
||||
58
web-vue/packages/biz/api/biz/monitorAccount.ts
Normal file
58
web-vue/packages/biz/api/biz/monitorAccount.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 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 BizMonitorAccount extends BasicModel<BizMonitorAccount> {
|
||||
createTime?: string; // 记录时间
|
||||
accountId?: string; // 唯一标识
|
||||
hostId: string; // 主机标识
|
||||
sshUsername: string; // 登录账号
|
||||
sshPassword: string; // 登录密码
|
||||
sshPort: number; // 登录端口
|
||||
initialPath: string; // 初始目录
|
||||
timeoutSeconds: number; // 超时时间
|
||||
ustatus: string; // 账号状态
|
||||
remark?: string; // 备注信息
|
||||
updateTime?: string; // 更新时间
|
||||
ftenantId?: string; // 租户id
|
||||
fflowId?: string; // 流程id
|
||||
fflowTaskId?: string; // 流程任务主键
|
||||
fflowState?: number; // 流程任务状态
|
||||
}
|
||||
|
||||
export const bizMonitorAccountList = (params?: BizMonitorAccount | any) =>
|
||||
defHttp.get<BizMonitorAccount>({ url: adminPath + '/biz/monitorAccount/list', params });
|
||||
|
||||
export const bizMonitorAccountListData = (params?: BizMonitorAccount | any) =>
|
||||
defHttp.post<Page<BizMonitorAccount>>({ url: adminPath + '/biz/monitorAccount/listData', params });
|
||||
|
||||
export const bizMonitorAccountForm = (params?: BizMonitorAccount | any) =>
|
||||
defHttp.get<BizMonitorAccount>({ url: adminPath + '/biz/monitorAccount/form', params });
|
||||
|
||||
export const bizMonitorAccountSave = (params?: any, data?: BizMonitorAccount | any) =>
|
||||
defHttp.postJson<BizMonitorAccount>({ url: adminPath + '/biz/monitorAccount/save', params, data });
|
||||
|
||||
export const bizMonitorAccountImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/monitorAccount/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizMonitorAccountDelete = (params?: BizMonitorAccount | any) =>
|
||||
defHttp.get<BizMonitorAccount>({ url: adminPath + '/biz/monitorAccount/delete', params });
|
||||
62
web-vue/packages/biz/api/biz/monitorHost.ts
Normal file
62
web-vue/packages/biz/api/biz/monitorHost.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* 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 });
|
||||
55
web-vue/packages/biz/api/biz/serverInfo.ts
Normal file
55
web-vue/packages/biz/api/biz/serverInfo.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* 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 BizServerInfo extends BasicModel<BizServerInfo> {
|
||||
createTime?: string; // 记录时间
|
||||
uptime: string; // 主机运行时间
|
||||
os: string; // 操作系统
|
||||
kernelVersion: string; // 内核版本
|
||||
hostname: string; // 主机名称
|
||||
ipAddress: string; // 主机地址
|
||||
cpuModel: string; // CPU型号
|
||||
memoryTotal: string; // 内存总量
|
||||
cpuUsage: number; // CPU使用率(%)
|
||||
memoryUsage: number; // 内存使用率(%)
|
||||
lastOnlineTime: string; // 最后一次检测时间
|
||||
hostId: string; // 主机标识
|
||||
}
|
||||
|
||||
export const bizServerInfoList = (params?: BizServerInfo | any) =>
|
||||
defHttp.get<BizServerInfo>({ url: adminPath + '/biz/serverInfo/list', params });
|
||||
|
||||
export const bizServerInfoListData = (params?: BizServerInfo | any) =>
|
||||
defHttp.post<Page<BizServerInfo>>({ url: adminPath + '/biz/serverInfo/listData', params });
|
||||
|
||||
export const bizServerInfoForm = (params?: BizServerInfo | any) =>
|
||||
defHttp.get<BizServerInfo>({ url: adminPath + '/biz/serverInfo/form', params });
|
||||
|
||||
export const bizServerInfoSave = (params?: any, data?: BizServerInfo | any) =>
|
||||
defHttp.postJson<BizServerInfo>({ url: adminPath + '/biz/serverInfo/save', params, data });
|
||||
|
||||
export const bizServerInfoImportData = (
|
||||
params: UploadFileParams,
|
||||
onUploadProgress: (progressEvent: AxiosProgressEvent) => void,
|
||||
) =>
|
||||
defHttp.uploadFile<UploadApiResult>(
|
||||
{
|
||||
url: ctxPath + adminPath + '/biz/serverInfo/importData',
|
||||
onUploadProgress,
|
||||
},
|
||||
params,
|
||||
);
|
||||
|
||||
export const bizServerInfoDelete = (params?: BizServerInfo | any) =>
|
||||
defHttp.get<BizServerInfo>({ url: adminPath + '/biz/serverInfo/delete', params });
|
||||
Reference in New Issue
Block a user