problem list.

This commit is contained in:
2023-03-14 20:58:43 +08:00
parent b987749ff6
commit 51328770c6
7 changed files with 118 additions and 39 deletions

View File

@@ -29,3 +29,15 @@ export async function getProblemList(
total: res.data.total,
}
}
export function deleteProblem(id: number) {
return http.delete("admin/problem", { params: { id } })
}
export function editProblem(problem: Problem) {
return http.put("admin/problem", problem)
}
export function getProblem(id: number) {
return http.get("admin/problem", { params: { id } })
}