import http from '@/api'; import { Dashboard } from '../interface/dashboard'; export const loadOsInfo = () => { return http.get(`/dashboard/base/os`); }; export const loadAppLauncher = () => { return http.get>(`/dashboard/app/launcher`); }; export const loadAppLauncherOption = (filter: string) => { return http.post>(`/dashboard/app/launcher/option`, { filter: filter }); }; export const changeLauncherStatus = (key: string, val: string) => { return http.post(`/dashboard/app/launcher/show`, { key: key, value: val }); }; export const loadBaseInfo = (ioOption: string, netOption: string) => { return http.get(`/dashboard/base/${ioOption}/${netOption}`); }; export const loadCurrentInfo = (ioOption: string, netOption: string) => { return http.get(`/dashboard/current/${ioOption}/${netOption}`); }; export const systemRestart = (operation: string) => { return http.post(`/dashboard/system/restart/${operation}`); };