import { ModelDeploymentStatus } from '@/enums';

// 模型部署列表数据类型
export type ModelDeploymentData = {
  service_id: number;
  service_ins_id: number;
  service_name: string;
  description: string;
  status: ModelDeploymentStatus;
  update_time: string;
  create_time: string;
  created_by: string;
  model_path: string;
  url: string;
  image: string;
  replicas: number;
  resource: string;
  model: {
    id: number;
    version: string;
    path: string;
    show_value: string;
  };
  env: Record<string, string>;
};

// 操作类型
export enum ModelDeploymentOperationType {
  Create = 'Create', // 创建
  Update = 'Update', // 更新
  Restart = 'Restart', // 重启
}
