Download apps/web-naive/src/api/core/user.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-naive/src/api/core/user.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/apps/web-naive/src/api/core/user.ts
-
curl -L -o user.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/apps/web-naive/src/api/core/user.ts
271 Bytes
| import type { UserInfo } from '@vben/types'; | |
| import { requestClient } from '#/api/request'; | |
| /** | |
| * 获取当前登录管理员信息 GET /admin/auth/user-info | |
| */ | |
| export async function getUserInfoApi() { | |
| return requestClient.get<UserInfo>('/admin/auth/user-info'); | |
| } | |