add access.

This commit is contained in:
2023-01-31 11:11:42 +08:00
parent be6e9eaaef
commit 6aa722c64a
8 changed files with 207 additions and 77 deletions

View File

@@ -112,9 +112,11 @@ export function getContestAccess(id: string) {
export function checkContestPassword(contestID: string, password: string) {
return http.post("contest/password", {
data: {
contest_id: contestID,
password,
},
contest_id: contestID,
password,
})
}
export function getContestProblem(contestID: string) {
return http.get("contest/problem", { params: { contest_id: contestID } })
}