mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
vjudge: Codeforces::Gym
This commit is contained in:
1 parent
5dd7fe935b
commit
6f791903d4
4 files changed
+121
-44
No files matched your search
@@ -8,6 +8,7 @@ export interface RemoteAccount {
|
||||
proxy?: string;
|
||||
query?: string;
|
||||
frozen?: string;
|
||||
problemLists?: string[];
|
||||
}
|
||||
declare module 'hydrooj/src/interface' {
|
||||
interface Collections {
|
||||
@@ -21,7 +22,7 @@ declare module 'hydrooj/src/interface' {
|
||||
}
|
||||
export interface IBasicProvider {
|
||||
ensureLogin(): Promise<boolean | string>;
|
||||
getProblem(id: string): Promise<{
|
||||
getProblem(id: string, meta: Record<string, any>): Promise<{
|
||||
title: string;
|
||||
data: Record<string, any>;
|
||||
files: Record<string, any>;
|
||||
@@ -29,7 +30,8 @@ export interface IBasicProvider {
|
||||
content: string;
|
||||
difficulty?: number;
|
||||
}>;
|
||||
listProblem(page: number, resync: boolean): Promise<string[]>;
|
||||
entryProblemLists?: string[];
|
||||
listProblem(page: number, resync: boolean, listId: string): Promise<string[]>;
|
||||
submitProblem(id: string, lang: string, code: string, info: any, next: any, end: any): Promise<string>;
|
||||
waitForSubmission(id: string, next: any, end: any): Promise<void>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user