add user pagination

This commit is contained in:
xuyue committed 2025-03-05 20:50:13 +08:00
1 parent ea5393242a
commit 838a703023
7 files changed
+89 -10

No files matched your search

+6 -1
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 {