mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
problem_copy
This commit is contained in:
1 parent
37756c3724
commit
9e96c471af
14 files changed
+118
-159
No files matched your search
+10
-2
@@ -53,6 +53,15 @@ export interface User extends Dictionary<any> {
|
||||
|
||||
export type Udict = NumericDictionary<User>;
|
||||
|
||||
export interface ProblemDataSource {
|
||||
host?: string, // Empty for local
|
||||
domainId: string,
|
||||
pid: number,
|
||||
}
|
||||
|
||||
// ObjectID for built-in files, ProblemDataSource for other source (RemoteJudge, etc.)
|
||||
export type ProblemData = ObjectID | ProblemDataSource;
|
||||
|
||||
export interface Pdoc {
|
||||
_id: ObjectID,
|
||||
domainId: string,
|
||||
@@ -66,8 +75,7 @@ export interface Pdoc {
|
||||
nAccept: number,
|
||||
tag: string[],
|
||||
category: string[],
|
||||
// ObjectID for built-in files, string for other source (RemoteJudge, etc.)
|
||||
data?: ObjectID | string,
|
||||
data?: ProblemData,
|
||||
hidden: boolean,
|
||||
config: string,
|
||||
acMsg?: string,
|
||||
|
||||
Reference in new issue
Block a user