add user pagination

This commit is contained in:
2025-03-05 20:50:13 +08:00
parent ea5393242a
commit 838a703023
7 changed files with 89 additions and 10 deletions

View File

@@ -51,12 +51,17 @@ export class Account {
return res.data
}
static async list(query: { username: string }) {
static async list(query: { username: string; page: number }) {
const res = await http.get("/account/list", {
params: query,
})
return res.data
}
static async toggleActive(id: number) {
const res = await http.put(`/account/active/${id}`)
return res.data
}
}
export class Tutorial {