add contest detail.

This commit is contained in:
2023-01-23 22:56:50 +08:00
parent b060262f70
commit 7def5a4d83
8 changed files with 118 additions and 11 deletions

View File

@@ -1,3 +1,5 @@
import { ContestStatus, ContestType } from "./constants"
export interface Profile {
id: number
user: User
@@ -206,8 +208,8 @@ export interface Contest {
username: string
real_name: null
}
status: "-1" | "0" | "1"
contest_type: "Password Protected" | "Public"
status: ContestStatus
contest_type: ContestType
title: string
description: string
real_time_rank: boolean