add end_time
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-03-16 23:44:41 +08:00
parent 19b2e2a507
commit 8be95b4c85
3 changed files with 26 additions and 0 deletions

View File

@@ -318,6 +318,7 @@ export function createProblemSet(data: {
description: string
difficulty: string
status: string
end_time?: Date | null
}) {
return http.post("admin/problemset", data)
}
@@ -328,6 +329,7 @@ export function editProblemSet(data: {
description?: string
difficulty?: string
status?: string
end_time?: Date | null
visible?: boolean
}) {
return http.put("admin/problemset", data)