Skip to content

Commit 92bbfdb

Browse files
committed
feat(contests): get created contest
1 parent aaead10 commit 92bbfdb

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

contests.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@
6464
</tr>
6565
</table>
6666

67+
## 获取创建的比赛
68+
69+
<table>
70+
<tr>
71+
<th align="right">请求</th>
72+
<td><code>GET /contest/edit/:id</code></td>
73+
</tr>
74+
<tr>
75+
<th align="right">响应主体</th>
76+
<td><code>application/json</code> (<code>DataResponse&lt;CreatedContestData&gt;</code>)</td>
77+
</tr>
78+
</table>
79+
6780
## 获取排行榜
6881

6982
<table>

luogu-api.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,9 @@ export interface ContestData {
437437
}
438438

439439
export interface CreatedContestData {
440+
isContestAdmin: boolean;
440441
contest: ContestDetails & { joinCode: string };
441-
contestProblems: { score: number; problem: LegacyProblemSummary };
442+
contestProblems: { score: number; problem: LegacyProblemSummary }[];
442443
contestSetting: ContestSettings;
443444
privilegedTeams: TeamSummary[];
444445
}
@@ -794,6 +795,10 @@ export interface ContestSettings {
794795
ruleType: number;
795796
startTime: number;
796797
endTime: number;
798+
rated: boolean;
799+
ratingGroup: string | null;
800+
eloThreshold: number | null;
801+
eloCenter: number | null;
797802
}
798803

799804
export interface Score {

0 commit comments

Comments
 (0)