import request from '@/utils/http';

import { ControllerResponse } from './data-contracts';
export default {
  /**
   * @description 检查API服务的健康状态
   */
  healthList: () => {
    return request.get<
      ControllerResponse & {
        data?: {
          status?: string;
          timestamp?: number;
          uptime?: string;
        };
      }
    >(`/system/health`);
  },
  /**
   * @description 获取系统基本信息
   */
  infoList: () => {
    return request.get<
      ControllerResponse & {
        data?: {
          architecture?: string;
          environment?: string;
          framework?: string;
          name?: string;
          timestamp?: number;
          version?: string;
        };
      }
    >(`/system/info`);
  }
};
