新增用户和题目的数据展示

This commit is contained in:
2025-04-13 23:35:47 +08:00
parent 9a4cbe97a8
commit 316b39e1e9
7 changed files with 313 additions and 271 deletions

View File

@@ -70,6 +70,10 @@ export function getProblem(problemID: string, contestID: string) {
})
}
export function getProblemBeatRate(problemID: number) {
return http.get("problem/beat_count", { params: { problem_id: problemID } })
}
export function getSubmission(id: string) {
return http.get<Submission>("submission", {
params: { id },
@@ -220,3 +224,7 @@ export function getCommentStatistics(problemID: number) {
export function refreshUserProblemDisplayIds() {
return http.get("profile/fresh_display_id")
}
export function getMetrics(userid: number) {
return http.get("metrics", { params: { userid } })
}