File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ export interface Request {
2+ source : string , // Base64 encoded
3+ lang : string ,
4+ mode ?: string , // default sync
5+ timlimit ?: number , // default 5
6+ callback ?: string // default null
7+ }
8+
9+ export interface RunRequest extends Request {
10+ stdin : string
11+ }
12+
13+ export interface Testcase {
14+ id : number ,
15+ input : string ,
16+ output : string
17+ }
18+
19+ export interface SubmitRequest extends Request {
20+ testcases : Array < Testcase >
21+ }
Original file line number Diff line number Diff line change 1+ export interface Testcase {
2+ id : number ,
3+ score : number ,
4+ time : string ,
5+ result : string
6+ }
Original file line number Diff line number Diff line change 1+ import { Testcase } from "./result" ;
2+
3+ export type SubmissionAttributes = {
4+ id : number ,
5+ lang : string ,
6+ start_time : Date ,
7+ end_time ?: Date ,
8+ mode : string ,
9+ callback ?: string ,
10+ results ?: Array < Testcase >
11+ outputs ?: Array < string >
12+ }
You can’t perform that action at this time.
0 commit comments