Download playground/src/api/examples/table.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/api/examples/table.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/playground/src/api/examples/table.ts
-
curl -L -o table.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/api/examples/table.ts
387 Bytes
| import { requestClient } from '#/api/request'; | |
| export namespace DemoTableApi { | |
| export interface PageFetchParams { | |
| [key: string]: any; | |
| page: number; | |
| pageSize: number; | |
| } | |
| } | |
| /** | |
| * 获取示例表格数据 | |
| */ | |
| async function getExampleTableApi(params: DemoTableApi.PageFetchParams) { | |
| return requestClient.get('/table/list', { params }); | |
| } | |
| export { getExampleTableApi }; | |