mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-27 16:00:59 +00:00
15 lines
529 B
Go
15 lines
529 B
Go
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}`);
|
|
};
|
|
|
|
export const systemRestart = (operation: string) => {
|
|
return http.post(`/dashboard/system/restart/${operation}`);
|
|
};
|