contest list.

This commit is contained in:
2023-03-20 20:54:12 +08:00
parent efbc21ba18
commit 4af5a28c03
11 changed files with 146 additions and 14 deletions

View File

@@ -40,6 +40,12 @@ export function deleteUsers(userIDs: number[]) {
return http.delete("admin/user", { params: { id: userIDs.join(",") } })
}
export function editUser(user: User & { password: string }) {
export function editUser(user: User) {
return http.put("admin/user", user)
}
export function getContestList(offset = 0, limit = 10, keyword: string) {
return http.get("admin/contest", {
params: { paging: true, offset, limit, keyword },
})
}