Download web/models/user.ts from ZHZ1024/dify: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/models/user.ts
- Command line
-
hf download hf://spaces/ZHZ1024/dify/web/models/user.ts
-
curl -L -o user.ts https://huggingface.co/spaces/ZHZ1024/dify/resolve/main/web/models/user.ts
297 Bytes
| export type User = { | |
| id: string | |
| firstName: string | |
| lastName: string | |
| name: string | |
| phone: string | |
| username: string | |
| email: string | |
| avatar: string | |
| } | |
| export type UserResponse = { | |
| users: User[] | |
| } | |
| export const fetchUsers = (url: string) => | |
| fetch(url).then<UserResponse>(r => r.json()) | |