mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
judge: refactor: use common JudgeTask interface
This commit is contained in:
1 parent
e2d8df1428
commit
636446c43a
20 files changed
+291
-506
No files matched your search
@@ -1,16 +1,10 @@
|
||||
import { CopyInFile } from './sandbox/interface';
|
||||
import { CopyInFile } from './sandbox';
|
||||
|
||||
export interface Execute {
|
||||
execute: string,
|
||||
clean: Function,
|
||||
copyIn: Record<string, CopyInFile>,
|
||||
time?: number,
|
||||
}
|
||||
|
||||
export interface CompileErrorInfo {
|
||||
stdout?: string,
|
||||
stderr?: string,
|
||||
status?: number
|
||||
execute: string;
|
||||
clean: () => Promise<any>;
|
||||
copyIn: Record<string, CopyInFile>;
|
||||
time?: number;
|
||||
}
|
||||
|
||||
export interface CheckConfig {
|
||||
@@ -25,10 +19,3 @@ export interface CheckConfig {
|
||||
detail: boolean;
|
||||
env?: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface CheckResult {
|
||||
status: number,
|
||||
score: number,
|
||||
message: string,
|
||||
code?: number,
|
||||
}
|
||||
Reference in new issue
Block a user