core&ui: add problem stat (#798)

Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
pandaandundefined authored and GitHub committed 2024-05-11 00:11:27 +08:00
1 parent c51ff5ce3a
commit d582617aaf
11 files changed
+295 -74

No files matched your search

+11
View File
@@ -338,6 +338,16 @@ export interface RecordDoc {
subtasks?: Record<number, SubtaskResult>;
}
export interface RecordStatDoc {
_id: ObjectId;
domainId: string;
pid: number;
uid: number;
time: number;
memory: number;
code: number;
lang: string;
}
export interface JudgeMeta {
problemOwner: number;
hackRejudge?: string;
@@ -688,6 +698,7 @@ declare module './service/db' {
'domain': DomainDoc;
'domain.user': any;
'record': RecordDoc;
'record.stat': RecordStatDoc;
'document': any;
'document.status': StatusDocBase & {
[K in keyof DocStatusType]: { docType: K } & DocStatusType[K];