import { requestClient } from '#/api/request';

export namespace ServerApi {
  export interface DiskInfo {
    diskName: string;
    typeName: string;
    totalFree: number;
    totalSize: number;
    used: number;
    availableFreeSpace: number;
    availablePercent: number;
  }
  export const getInfo = () => requestClient.get('/server/info');

  export const getUsed = () => requestClient.get('/server/used');

  export const getDisk = () => requestClient.get<DiskInfo[]>('/server/disk');
}
