export const datasetListData = {
  msg: '操作成功',
  code: 200,
  data: {
    content: [
      {
        name: '手写体识别训练测试数据集',
        identifier: 'admin_dataset_20241213140429',
        description: '手写体识别数据集',
        is_public: false,
        time_ago: '2个月前',
        id: 1454047,
        visits: 0,
        create_by: '陈志航',
        owner: 'chenzhihang',
      },
      {
        name: '手写体识别',
        identifier: 'admin_dataset_20241213140020',
        description: '手写体识别数据集',
        is_public: false,
        time_ago: '2个月前',
        id: 1454046,
        visits: 0,
        create_by: '陈志航',
        owner: 'chenzhihang',
      },
      {
        name: '生物活性分子数据集',
        identifier: 'admin_dataset_20241211151411',
        description: '生物活性分子数据集',
        is_public: false,
        time_ago: '2个月前',
        id: 1454004,
        visits: 0,
        create_by: '陈志航',
        owner: 'chenzhihang',
      },
      {
        name: '介电材料数据集',
        identifier: 'admin_dataset_20241211151330',
        description: '介电材料数据集',
        is_public: false,
        time_ago: '2个月前',
        id: 1454003,
        visits: 0,
        create_by: '陈志航',
        owner: 'chenzhihang',
      },
    ],
    pageable: {
      sort: {
        unsorted: true,
        sorted: false,
        empty: true,
      },
      pageSize: 2000,
      pageNumber: 0,
      offset: 0,
      unpaged: false,
      paged: true,
    },
    last: true,
    totalElements: 4,
    totalPages: 1,
    sort: {
      unsorted: true,
      sorted: false,
      empty: true,
    },
    first: true,
    number: 0,
    numberOfElements: 4,
    size: 2000,
    empty: false,
  },
};

export const datasetVersionData = {
  msg: '操作成功',
  code: 200,
  data: [
    {
      name: 'v2',
      http_url: 'https://cdn09022024.gitlink.org.cn/chenzhihang/admin_dataset_20241213140429.git',
      zip_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_dataset_20241213140429/archive/v2.zip',
      tar_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_dataset_20241213140429/archive/v2.tar.gz',
    },
    {
      name: 'v3',
      http_url: 'https://cdn09022024.gitlink.org.cn/chenzhihang/admin_dataset_20241213140429.git',
      zip_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_dataset_20241213140429/archive/v3.zip',
      tar_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_dataset_20241213140429/archive/v3.tar.gz',
    },
    {
      name: 'v1',
      http_url: 'https://cdn09022024.gitlink.org.cn/chenzhihang/admin_dataset_20241213140429.git',
      zip_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_dataset_20241213140429/archive/v1.zip',
      tar_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_dataset_20241213140429/archive/v1.tar.gz',
    },
  ],
};

export const datasetDetailData = {
  msg: '操作成功',
  code: 200,
  data: {
    name: '生物活性分子材料数据集',
    identifier: 'admin_dataset_20250217105241',
    description: '生物活性分子材料数据集',
    is_public: false,
    data_type: '自然语言处理',
    data_tag: '机器翻译',
    version: 'v1',
    dataset_version_vos: [
      {
        url: '/home/resource/admin/datasets/1454953/admin_dataset_20250217105241/v1/dataset/BBBP.zip',
        file_name: 'BBBP.zip',
        file_size: '42.14 KB',
      },
    ],
    id: 1454953,
    create_by: '樊帅',
    version_desc: '生物活性分子材料数据集',
    usage:
      '<pre><code># 克隆数据集配置文件与存储参数到本地\ngit clone -b v1 https://gitlink.org.cn/fanshuai/admin_dataset_20250217105241.git\n# 远程拉取配置文件\ndvc pull\n</code></pre>',
    update_time: '2025-02-17 10:52:43',
    owner: 'fanshuai',
    dataset_source: 'add',
    relative_paths: 'admin/datasets/1454953/admin_dataset_20250217105241/v1/dataset',
  },
};

export const modelListData = {
  msg: '操作成功',
  code: 200,
  data: {
    content: [
      {
        id: 1454208,
        name: '介电材料模型1',
        create_by: '陈志航',
        description: '介电材料模型1',
        time_ago: '2个月前',
        owner: 'chenzhihang',
        identifier: 'admin_model_20241224095928',
        is_public: false,
      },
      {
        id: 1454007,
        name: '手写体识别部署模型',
        create_by: '陈志航',
        description: '手写体识别部署模型',
        time_ago: '2个月前',
        owner: 'chenzhihang',
        identifier: 'admin_model_20241211151713',
        is_public: false,
      },
      {
        id: 1454006,
        name: '生物活性分子材料',
        create_by: '陈志航',
        description: '生物活性分子材料',
        time_ago: '2个月前',
        owner: 'chenzhihang',
        identifier: 'admin_model_20241211151645',
        is_public: false,
      },
      {
        id: 1454005,
        name: '介电材料模型',
        create_by: '陈志航',
        description: '介电材料模型',
        time_ago: '2个月前',
        owner: 'chenzhihang',
        identifier: 'admin_model_20241211151601',
        is_public: false,
      },
    ],
    pageable: {
      sort: {
        unsorted: true,
        sorted: false,
        empty: true,
      },
      pageSize: 2000,
      pageNumber: 0,
      offset: 0,
      unpaged: false,
      paged: true,
    },
    last: true,
    totalElements: 4,
    totalPages: 1,
    sort: {
      unsorted: true,
      sorted: false,
      empty: true,
    },
    first: true,
    number: 0,
    numberOfElements: 4,
    size: 2000,
    empty: false,
  },
};

export const modelVersionData = {
  msg: '操作成功',
  code: 200,
  data: [
    {
      name: 'v1',
      http_url: 'https://cdn09022024.gitlink.org.cn/chenzhihang/admin_model_20241224095928.git',
      zip_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_model_20241224095928/archive/v1.zip',
      tar_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_model_20241224095928/archive/v1.tar.gz',
    },
    {
      name: 'v2',
      http_url: 'https://cdn09022024.gitlink.org.cn/chenzhihang/admin_model_20241224095928.git',
      zip_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_model_20241224095928/archive/v1.zip',
      tar_url:
        'https://www.gitlink.org.cn/api/chenzhihang/admin_model_20241224095928/archive/v1.tar.gz',
    },
  ],
};

export const modelDetailData = {
  msg: '操作成功',
  code: 200,
  data: {
    id: 1454208,
    name: '介电材料模型1',
    version: 'v1',
    version_desc: '介电材料模型1',
    create_by: '陈志航',
    create_time: '2024-12-24 09:59:31',
    update_time: '2024-12-24 09:59:31',
    model_size: '101.90 KB',
    model_source: 'add',
    model_tag: '图像分类',
    model_type: 'PyTorch',
    description: '介电材料模型1',
    usage:
      '<pre><code># 克隆模型配置文件与存储参数到本地\ngit clone -b v1 https://gitlink.org.cn/chenzhihang/admin_model_20241224095928.git\n# 远程拉取配置文件\ndvc pull\n</code></pre>',
    owner: 'chenzhihang',
    identifier: 'admin_model_20241224095928',
    is_public: false,
    relative_paths: 'admin/model/1454208/admin_model_20241224095928/v1/model',
    model_version_vos: [
      {
        url: '/home/resource/admin/model/1454208/admin_model_20241224095928/v1/model/sklearn_svr_good.pkl',
        file_name: 'sklearn_svr_good.pkl',
        file_size: '101.90 KB',
      },
    ],
  },
};

export const mirrorListData = {
  code: 200,
  msg: '操作成功',
  data: {
    content: [
      {
        id: 42,
        name: 'ccr.ccs.tencentyun.com/somunslotus/httpserver',
        description: 'htttp服务器镜像',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-04-30T14:44:37.000+08:00',
        update_by: 'admin',
        update_time: '2024-04-30T14:44:37.000+08:00',
        state: 1,
        version_count: 1,
      },
      {
        id: 44,
        name: 'minio-test',
        description: 'minio镜像',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-05-08T15:19:00.000+08:00',
        update_by: 'admin',
        update_time: '2024-05-08T15:19:00.000+08:00',
        state: 1,
        version_count: 1,
      },
      {
        id: 46,
        name: 'machine-learning/mnist-model-deploy',
        description: 'mnist手写体识别部署镜像',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-05-28T10:18:30.000+08:00',
        update_by: 'admin',
        update_time: '2024-05-28T10:18:30.000+08:00',
        state: 1,
        version_count: 2,
      },
      {
        id: 49,
        name: 'go_httpsever',
        description: 'golang httpserver镜像',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-06-25T11:11:41.000+08:00',
        update_by: 'admin',
        update_time: '2024-06-25T11:11:41.000+08:00',
        state: 1,
        version_count: 1,
      },
      {
        id: 51,
        name: 'pytorch2_python3_cuda_12',
        description: 'pytorch2.1.2_python3.11_cuda_12',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-10-14T16:16:35.000+08:00',
        update_by: 'admin',
        update_time: '2024-10-14T16:16:35.000+08:00',
        state: 1,
        version_count: 2,
      },
      {
        id: 53,
        name: 'jupyterlab',
        description: 'v1',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-10-15T16:19:29.000+08:00',
        update_by: 'admin',
        update_time: '2024-10-15T16:19:29.000+08:00',
        state: 1,
        version_count: 1,
      },
      {
        id: 55,
        name: 'machine-learning/ax-pytorch',
        description: '自动机器学习Ax镜像，带pytorch',
        image_type: 0,
        create_by: 'admin',
        create_time: '2024-12-13T11:25:37.000+08:00',
        update_by: 'admin',
        update_time: '2024-12-13T11:25:37.000+08:00',
        state: 1,
        version_count: 1,
      },
    ],
    pageable: {
      sort: {
        unsorted: true,
        sorted: false,
        empty: true,
      },
      pageSize: 2000,
      pageNumber: 0,
      offset: 0,
      unpaged: false,
      paged: true,
    },
    last: true,
    totalElements: 7,
    totalPages: 1,
    sort: {
      unsorted: true,
      sorted: false,
      empty: true,
    },
    first: true,
    number: 0,
    numberOfElements: 7,
    size: 2000,
    empty: false,
  },
};

export const mirrorVerionData = {
  code: 200,
  msg: '操作成功',
  data: {
    content: [
      {
        id: 54,
        image_id: 42,
        version: null,
        url: '172.20.32.187/testlib/admin/ccr.ccs.tencentyun.com/somunslotus/httpserver:v1',
        tag_name: 'v1',
        file_size: '6.98 MB',
        status: 'available',
        create_by: 'admin',
        create_time: '2024-04-30T14:44:37.000+08:00',
        update_by: 'admin',
        update_time: '2024-04-30T14:44:51.000+08:00',
        state: 1,
        host_ip: null,
      },
    ],
    pageable: {
      sort: {
        unsorted: true,
        sorted: false,
        empty: true,
      },
      pageSize: 2000,
      pageNumber: 0,
      offset: 0,
      unpaged: false,
      paged: true,
    },
    last: true,
    totalElements: 1,
    totalPages: 1,
    sort: {
      unsorted: true,
      sorted: false,
      empty: true,
    },
    first: true,
    number: 0,
    numberOfElements: 1,
    size: 2000,
    empty: false,
  },
};

export const codeListData = {
  code: 200,
  msg: '操作成功',
  data: {
    content: [
      {
        id: 2,
        code_repo_name: '介电材料代码',
        code_repo_vis: 1,
        git_url: 'https://gitlink.org.cn/fuli/ML_for_Materials.git',
        git_branch: 'master',
        verify_mode: null,
        git_user_name: null,
        git_password: null,
        ssh_key: null,
        create_by: 'admin',
        create_time: '2024-10-14T16:10:45.000+08:00',
        update_by: 'admin',
        update_time: '2024-10-14T16:10:45.000+08:00',
        state: 1,
      },
      {
        id: 3,
        code_repo_name: '生物活性材料代码',
        code_repo_vis: 1,
        git_url: 'https://gitlink.org.cn/zhaoyihan/test_mole_pre.git',
        git_branch: 'parse_dataset',
        verify_mode: null,
        git_user_name: null,
        git_password: null,
        ssh_key: null,
        create_by: 'admin',
        create_time: '2024-10-16T08:41:39.000+08:00',
        update_by: 'admin',
        update_time: '2024-10-16T08:41:39.000+08:00',
        state: 1,
      },
      {
        id: 4,
        code_repo_name: '数据处理',
        code_repo_vis: 1,
        git_url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
        git_branch: 'train_ci_test',
        verify_mode: null,
        git_user_name: null,
        git_password: null,
        ssh_key: null,
        create_by: 'admin',
        create_time: '2024-10-16T14:51:18.000+08:00',
        update_by: 'admin',
        update_time: '2024-10-16T14:51:18.000+08:00',
        state: 1,
      },
      {
        id: 5,
        code_repo_name: '手写体识别部署',
        code_repo_vis: 1,
        git_url: 'https://gitlink.org.cn/somunslotus/mnist-inference.git',
        git_branch: 'master',
        verify_mode: null,
        git_user_name: null,
        git_password: null,
        ssh_key: null,
        create_by: 'admin',
        create_time: '2024-10-16T16:36:43.000+08:00',
        update_by: 'admin',
        update_time: '2024-10-16T16:36:43.000+08:00',
        state: 1,
      },
      {
        id: 7,
        code_repo_name: '手写体识别训练',
        code_repo_vis: 1,
        git_url: 'https://openi.pcl.ac.cn/somunslotus/somun202304241505581.git',
        git_branch: 'train_ci_test',
        verify_mode: null,
        git_user_name: null,
        git_password: null,
        ssh_key: null,
        create_by: 'admin',
        create_time: '2024-12-13T13:58:50.000+08:00',
        update_by: 'admin',
        update_time: '2024-12-13T13:58:50.000+08:00',
        state: 1,
      },
    ],
    pageable: {
      sort: {
        unsorted: true,
        sorted: false,
        empty: true,
      },
      pageSize: 20,
      pageNumber: 0,
      offset: 0,
      unpaged: false,
      paged: true,
    },
    last: true,
    totalElements: 5,
    totalPages: 1,
    sort: {
      unsorted: true,
      sorted: false,
      empty: true,
    },
    first: true,
    number: 0,
    numberOfElements: 5,
    size: 20,
    empty: false,
  },
};
