chore: api request

This commit is contained in:
jialin
2024-06-10 21:14:37 +08:00
parent 6a60561401
commit f491b5dfb1
24 changed files with 685 additions and 312 deletions
+31
View File
@@ -0,0 +1,31 @@
export const modelInstanceCols = [
{
title: 'Name',
dataIndex: 'name',
key: 'name'
},
{
title: 'Create Time',
dataIndex: 'createTime',
key: 'createTime'
},
{
title: 'Status',
dataIndex: 'status',
key: 'status'
},
{
title: 'Utilization',
dataIndex: 'utilization',
key: 'utilization'
},
{
title: 'Host Name',
dataIndex: 'hostName',
key: 'hostName'
},
{
title: 'Operation',
key: 'Operation'
}
];
+20
View File
@@ -0,0 +1,20 @@
export interface ListItem {
source: string;
huggingface_repo_id: string;
huggingface_file_name: string;
s3Address: string;
name: string;
description: string;
id: number;
created_at: string;
updated_at: string;
}
export interface FormData {
source: string;
huggingface_repo_id: string;
huggingface_filename: string;
s3_address: string;
name: string;
description: string;
}