import { defineMock } from 'umi';

export default defineMock({
  'POST /api/mmp/modelDependency/queryModelAtlas': {
    code: 200,
    msg: '操作成功',
    data: {
      current_model_id: 29,
      exp_ins_id: 229,
      version: 'v0.2.0',
      ref_item: null,
      train_task: {
        name: '模型训练测试导出0529',
        ins_id: 229,
        task_id: 'model-train-5d76f002',
      },
      train_dataset: [
        {
          dataset_id: 20,
          dataset_version: 'v0.1.0',
          dataset_name: '手写体识别模型依赖测试训练数据集',
        },
      ],
      train_params: ['256', '2'],
      train_image: '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
      test_dataset: [
        {
          dataset_id: 20,
          dataset_version: 'v0.1.0',
          dataset_name: '手写体识别模型依赖测试训练数据集',
        },
      ],
      project_dependency: {
        url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
        name: 'somun202304241505581',
        branch: 'train_ci_test',
      },
      parent_models_map: [
        {
          model_id: 29,
          model_version: 'v0.1.0',
          model_name: 'mnist模型演化',
        },
      ],
      parent_models: [
        {
          current_model_id: 29,
          exp_ins_id: null,
          version: 'v0.1.0',
          ref_item: null,
          train_task: {
            name: '模型训练测试导出0529',
            ins_id: 229,
            task_id: 'model-train-5d76f002',
          },
          train_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          train_params: ['256', '2'],
          train_image:
            '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
          test_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          project_dependency: {
            url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
            name: 'somun202304241505581',
            branch: 'train_ci_test',
          },
          parent_models_map: [],
          parent_models: [],
          children_models: null,
          workflow_id: null,
          model_version_dependcy_vo: {
            name: 'mnist模型演化',
            description: '手写体识别模型演化',
            available_range: 0,
            model_type: '37',
            model_tag: '46',
            model_type_name: 'PyTorch',
            model_tag_name: '图像转文本',
            url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
            file_name: 'mnist_epoch1_0.00.pkl',
            file_size: '176.63 KB',
            create_by: 'admin',
            create_time: '2024-06-12T06:09:56.000+00:00',
          },
        },
      ],
      children_models: [
        {
          current_model_id: 29,
          exp_ins_id: null,
          version: 'v0.3.0',
          ref_item: null,
          train_task: {
            name: '模型训练测试导出0529',
            ins_id: 229,
            task_id: 'model-train-5d76f002',
          },
          train_dataset: [
            {
              dataset_id: 120,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          train_params: ['256', '2'],
          train_image:
            '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
          test_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          project_dependency: {
            url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
            name: 'somun202304241505581',
            branch: 'train_ci_test',
          },
          parent_models_map: [],
          parent_models: [],
          children_models: [],
          workflow_id: null,
          model_version_dependcy_vo: {
            name: 'mnist模型演化',
            description: '手写体识别模型演化',
            available_range: 0,
            model_type: '37',
            model_tag: '46',
            model_type_name: 'PyTorch',
            model_tag_name: '图像转文本',
            url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
            file_name: 'mnist_epoch1_0.00.pkl',
            file_size: '176.63 KB',
            create_by: 'admin',
            create_time: '2024-06-12T06:09:56.000+00:00',
          },
        },
        {
          current_model_id: 29,
          exp_ins_id: null,
          version: 'v0.31.0',
          ref_item: null,
          train_task: {
            name: '模型训练测试导出0529',
            ins_id: 229,
            task_id: 'model-train-5d76f002',
          },
          train_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          train_params: ['256', '2'],
          train_image:
            '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
          test_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          project_dependency: {
            url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
            name: 'somun202304241505581',
            branch: 'train_ci_test',
          },
          parent_models_map: [],
          parent_models: [],
          children_models: [],
          workflow_id: null,
          model_version_dependcy_vo: {
            name: 'mnist模型演化',
            description: '手写体识别模型演化',
            available_range: 0,
            model_type: '37',
            model_tag: '46',
            model_type_name: 'PyTorch',
            model_tag_name: '图像转文本',
            url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
            file_name: 'mnist_epoch1_0.00.pkl',
            file_size: '176.63 KB',
            create_by: 'admin',
            create_time: '2024-06-12T06:09:56.000+00:00',
          },
        },
        {
          current_model_id: 29,
          exp_ins_id: null,
          version: 'v0.4.0',
          ref_item: null,
          train_task: {
            name: '模型训练测试导出0529',
            ins_id: 229,
            task_id: 'model-train-5d76f002',
          },
          train_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          train_params: ['256', '2'],
          train_image:
            '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
          test_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          project_dependency: {
            url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
            name: 'somun202304241505581',
            branch: 'train_ci_test',
          },
          parent_models_map: [],
          parent_models: [],
          children_models: [
            {
              current_model_id: 29,
              exp_ins_id: null,
              version: 'v0.6.0',
              ref_item: null,
              train_task: {
                name: '模型训练测试导出0529',
                ins_id: 229,
                task_id: 'model-train-5d76f002',
              },
              train_dataset: [
                {
                  dataset_id: 20,
                  dataset_version: 'v0.1.0',
                  dataset_name: '手写体识别模型依赖测试训练数据集',
                },
              ],
              train_params: ['256', '2'],
              train_image:
                '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
              test_dataset: [
                {
                  dataset_id: 20,
                  dataset_version: 'v0.1.0',
                  dataset_name: '手写体识别模型依赖测试训练数据集',
                },
              ],
              project_dependency: {
                url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
                name: 'somun202304241505581',
                branch: 'train_ci_test',
              },
              parent_models_map: [],
              parent_models: [],
              children_models: [],
              workflow_id: null,
              model_version_dependcy_vo: {
                name: 'mnist模型演化',
                description: '手写体识别模型演化',
                available_range: 0,
                model_type: '37',
                model_tag: '46',
                model_type_name: 'PyTorch',
                model_tag_name: '图像转文本',
                url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
                file_name: 'mnist_epoch1_0.00.pkl',
                file_size: '176.63 KB',
                create_by: 'admin',
                create_time: '2024-06-12T06:09:56.000+00:00',
              },
            },
            {
              current_model_id: 29,
              exp_ins_id: null,
              version: 'v0.7.0',
              ref_item: null,
              train_task: {},
              train_dataset: [],
              train_params: [],
              train_image: null,
              test_dataset: [],
              project_dependency: {},
              parent_models_map: [],
              parent_models: [],
              children_models: [],
              workflow_id: null,
              model_version_dependcy_vo: {
                name: 'mnist模型演化',
                description: '手写体识别模型演化',
                available_range: 0,
                model_type: '37',
                model_tag: '46',
                model_type_name: 'PyTorch',
                model_tag_name: '图像转文本',
                url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
                file_name: 'mnist_epoch1_0.00.pkl',
                file_size: '176.63 KB',
                create_by: 'admin',
                create_time: '2024-06-12T06:09:56.000+00:00',
              },
            },
          ],
          workflow_id: null,
          model_version_dependcy_vo: {
            name: 'mnist模型演化',
            description: '手写体识别模型演化',
            available_range: 0,
            model_type: '37',
            model_tag: '46',
            model_type_name: 'PyTorch',
            model_tag_name: '图像转文本',
            url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
            file_name: 'mnist_epoch1_0.00.pkl',
            file_size: '176.63 KB',
            create_by: 'admin',
            create_time: '2024-06-12T06:09:56.000+00:00',
          },
        },
        {
          current_model_id: 29,
          exp_ins_id: null,
          version: 'v0.5.0',
          ref_item: null,
          train_task: {
            name: '模型训练测试导出0529',
            ins_id: 229,
            task_id: 'model-train-5d76f002',
          },
          train_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          train_params: ['256', '2'],
          train_image:
            '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
          test_dataset: [
            {
              dataset_id: 20,
              dataset_version: 'v0.1.0',
              dataset_name: '手写体识别模型依赖测试训练数据集',
            },
          ],
          project_dependency: {
            url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
            name: 'somun202304241505581',
            branch: 'train_ci_test',
          },
          parent_models_map: [],
          parent_models: [],
          children_models: [
            {
              current_model_id: 29,
              exp_ins_id: null,
              version: 'v0.10.0',
              ref_item: null,
              train_task: {},
              train_dataset: [],
              train_params: [],
              train_image: null,
              test_dataset: [],
              project_dependency: {},
              parent_models_map: [],
              parent_models: [],
              children_models: [],
              workflow_id: null,
              model_version_dependcy_vo: {
                name: 'mnist模型演化',
                description: '手写体识别模型演化',
                available_range: 0,
                model_type: '37',
                model_tag: '46',
                model_type_name: 'PyTorch',
                model_tag_name: '图像转文本',
                url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
                file_name: 'mnist_epoch1_0.00.pkl',
                file_size: '176.63 KB',
                create_by: 'admin',
                create_time: '2024-06-12T06:09:56.000+00:00',
              },
            },
            {
              current_model_id: 29,
              exp_ins_id: null,
              version: 'v0.11.0',
              ref_item: null,
              train_task: {
                name: '模型训练测试导出0529',
                ins_id: 229,
                task_id: 'model-train-5d76f002',
              },
              train_dataset: [
                {
                  dataset_id: 20,
                  dataset_version: 'v0.1.0',
                  dataset_name: '手写体识别模型依赖测试训练数据集',
                },
              ],
              train_params: ['256', '2'],
              train_image:
                '172.20.32.187/machine-learning/pytorch:pytorch_1.9.1_cuda11.1_detection_aim',
              test_dataset: [
                {
                  dataset_id: 20,
                  dataset_version: 'v0.1.0',
                  dataset_name: '手写体识别模型依赖测试训练数据集',
                },
              ],
              project_dependency: {
                url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
                name: 'somun202304241505581',
                branch: 'train_ci_test',
              },
              parent_models_map: [],
              parent_models: [],
              children_models: [],
              workflow_id: null,
              model_version_dependcy_vo: {
                name: 'mnist模型演化',
                description: '手写体识别模型演化',
                available_range: 0,
                model_type: '37',
                model_tag: '46',
                model_type_name: 'PyTorch',
                model_tag_name: '图像转文本',
                url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
                file_name: 'mnist_epoch1_0.00.pkl',
                file_size: '176.63 KB',
                create_by: 'admin',
                create_time: '2024-06-12T06:09:56.000+00:00',
              },
            },
          ],
          workflow_id: null,
          model_version_dependcy_vo: {
            name: 'mnist模型演化',
            description: '手写体识别模型演化',
            available_range: 0,
            model_type: '37',
            model_tag: '46',
            model_type_name: 'PyTorch',
            model_tag_name: '图像转文本',
            url: 'models/admin/1718172558449/mnist_epoch1_0.00.pkl',
            file_name: 'mnist_epoch1_0.00.pkl',
            file_size: '176.63 KB',
            create_by: 'admin',
            create_time: '2024-06-12T06:09:56.000+00:00',
          },
        },
      ],
      workflow_id: 144,
      model_version_dependcy_vo: {
        name: 'mnist模型演化',
        description: '手写体识别模型演化',
        available_range: 0,
        model_type: '37',
        model_tag: '46',
        model_type_name: 'PyTorch',
        model_tag_name: '图像转文本',
        url: 'models/admin/1718172760650/mnist_cnn.pt',
        file_name: 'mnist_cnn.pt',
        file_size: '176.76 KB',
        create_by: 'admin',
        create_time: '2024-06-12T06:12:42.000+00:00',
      },
    },
  },
});
