mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
一些优化
优化 Date.prototype.format 修复题目分类解析错误的问题 Interface Tdoc X-Forwarded-For 支持
This commit is contained in:
1 parent
1722fbfaca
commit
82c193b5ee
19 files changed
+289
-182
No files matched your search
+13
-4
@@ -2,10 +2,12 @@
|
||||
import { ObjectID, GridFSBucket } from 'mongodb';
|
||||
import fs from 'fs';
|
||||
|
||||
export type Dict<T> = { [key: string]: T };
|
||||
|
||||
export interface Setting {
|
||||
family: string,
|
||||
key: string,
|
||||
range: Array<[string, string]> | { [key: string]: string },
|
||||
range: Array<[string, string]> | Dict<string>,
|
||||
value: any,
|
||||
type: string,
|
||||
name: string,
|
||||
@@ -51,7 +53,8 @@ export interface Pdoc {
|
||||
nAccept: number,
|
||||
tag: string[],
|
||||
category: string[],
|
||||
data?: ObjectID,
|
||||
// ObjectID for built-in files, string for other source (RemoteJudge, etc.)
|
||||
data?: ObjectID | string,
|
||||
hidden: boolean,
|
||||
config: string,
|
||||
}
|
||||
@@ -108,15 +111,21 @@ export interface Tdoc {
|
||||
domainId: string,
|
||||
docId: ObjectID,
|
||||
docType: number,
|
||||
owner: number,
|
||||
beginAt: Date,
|
||||
endAt: Date,
|
||||
penaltySince?: Date,
|
||||
penaltyRules?: PenaltyRules,
|
||||
attend: number,
|
||||
title: string,
|
||||
content: string,
|
||||
rule: string,
|
||||
pids: number[],
|
||||
|
||||
// For homework
|
||||
penaltySince?: Date,
|
||||
penaltyRules?: PenaltyRules,
|
||||
|
||||
// For training
|
||||
dag: any
|
||||
}
|
||||
|
||||
interface ContestStat {
|
||||
|
||||
Reference in new issue
Block a user