统一PostJudge接口

This commit is contained in:
undefined committed 2020-07-18 13:10:04 +08:00
1 parent 0ee306d0cf
commit 9efcdf9441
9 files changed
+108 -166

No files matched your search

+24
View File
@@ -199,6 +199,30 @@ export interface Script {
validate: any,
}
export interface JudgeResultBody {
domainId: string,
rid: ObjectID,
judger?: number,
tid?: ObjectID,
progress?: number
case?: {
status: number,
time: number,
memory: number,
message?: string,
},
status?: number,
score?: number,
time?: number,
memory?: number,
message?: string,
compilerText?: string,
// For pretest
stdout?: string,
stderr?: string,
}
declare global {
namespace NodeJS {
interface Global {