Download playground/src/api/core/user.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 219 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/api/core/user.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/playground/src/api/core/user.ts
-
curl -L -o user.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/playground/src/api/core/user.ts
219 Bytes
| import type { UserInfo } from '@vben/types'; | |
| import { requestClient } from '#/api/request'; | |
| /** | |
| * 获取用户信息 | |
| */ | |
| export async function getUserInfoApi() { | |
| return requestClient.get<UserInfo>('/user/info'); | |
| } | |