hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits
| 1 | import { client } from "../client"; |
| 2 | import { normalizePage, pageQuery, type Page, type PageParams } from "../client"; |
| 3 | import type { ClassGroup } from "../client"; |
| 4 | |
| 5 | export async function getClassesByUserId( |
| 6 | userId: string, |
| 7 | params?: PageParams, |
| 8 | signal?: AbortSignal, |
| 9 | ): Promise<Page<ClassGroup>> { |
| 10 | const data = await client<unknown>(`/classes/user/${userId}${pageQuery(params)}`, { signal }); |
| 11 | return normalizePage<ClassGroup>(data); |
| 12 | } |