mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-03 04:24:15 +08:00
19 lines
628 B
Go
19 lines
628 B
Go
import http from '@/api';
|
|
import { Dashboard } from '../interface/dashboard';
|
|
|
|
export const loadOsInfo = () => {
|
|
return http.get<Dashboard.OsInfo>(`/dashboard/base/os`);
|
|
};
|
|
|
|
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}`);
|
|
};
|
|
|
|
export const systemRestart = (operation: string) => {
|
|
return http.post(`/dashboard/system/restart/${operation}`);
|
|
};
|