d13100ebf3
Update draft releases / main (push) Has been cancelled
Build and push docs image / build-image (push) Has been cancelled
Build Web Application / build-web (macos-latest) (push) Has been cancelled
Build Web Application / build-web (ubuntu-latest) (push) Has been cancelled
Python Code Quality Checks / build (push) Has been cancelled
Test Python / test-python (macos-latest, 3.10) (push) Has been cancelled
Test Python / test-python (macos-latest, 3.11) (push) Has been cancelled
Test Python / test-python (ubuntu-latest, 3.10) (push) Has been cancelled
Test Python / test-python (ubuntu-latest, 3.11) (push) Has been cancelled
17 lines
568 B
TypeScript
17 lines
568 B
TypeScript
import { GET } from '../index';
|
|
|
|
// 获取数据集列表
|
|
export const getBenchmarkDatasets = () => {
|
|
return GET<null, any>(`/api/v2/serve/evaluate/benchmark/list_datasets`);
|
|
};
|
|
|
|
// 获取数据集下的物理表列表
|
|
export const getBenchmarkDatasetTables = (datasetId: string) => {
|
|
return GET<null, any>(`/api/v2/serve/evaluate/benchmark/dataset/${datasetId}`);
|
|
};
|
|
|
|
// 获取表数据
|
|
export const getBenchmarkTableRows = (datasetId: string, table: string) => {
|
|
return GET<null, any>(`/api/v2/serve/evaluate/benchmark/dataset/${datasetId}/${table}/rows`);
|
|
};
|