2022-11-24 23:56:48 +08:00
|
|
|
import http from '@/api';
|
|
|
|
import { Dashboard } from '../interface/dashboard';
|
|
|
|
|
|
|
|
export const loadBaseInfo = (ioOption: string, netOption: string) => {
|
|
|
|
return http.get<Dashboard.BaseInfo>(`/dashboard/base/${ioOption}/${netOption}`);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const loadCurrentInfo = (ioOption: string, netOption: string) => {
|
|
|
|
return http.get<Dashboard.CurrentInfo>(`/dashboard/current/${ioOption}/${netOption}`);
|
|
|
|
};
|
2023-10-17 17:54:30 +08:00
|
|
|
|
|
|
|
export const systemRestart = (operation: string) => {
|
|
|
|
return http.post(`/dashboard/system/restart/${operation}`);
|
|
|
|
};
|