mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
18 lines
297 B
TypeScript
18 lines
297 B
TypeScript
|
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())
|