mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
Hello Typescript!
This commit is contained in:
1 parent
c9b6412527
commit
ba03d7a7bf
98 files changed
+3186
-2616
No files matched your search
@@ -1,71 +0,0 @@
|
||||
import { ObjectID } from 'mongodb';
|
||||
|
||||
export interface Udoc {
|
||||
_id: number
|
||||
mail: string
|
||||
mailLower: string
|
||||
uname: string
|
||||
unameLower: string
|
||||
salt: string
|
||||
hash: string
|
||||
hashType: string
|
||||
nAccept: number
|
||||
nSubmit: number
|
||||
nLike: number
|
||||
perm: string
|
||||
viewLang: string
|
||||
codeLang: string
|
||||
codeTemplate: string
|
||||
gravatar: string
|
||||
hasPerm: Function
|
||||
checkPassword: Function
|
||||
}
|
||||
export interface Pdoc {
|
||||
_id: ObjectID
|
||||
pid: string
|
||||
owner: number
|
||||
title: string
|
||||
content: string
|
||||
nSubmit: number
|
||||
nAccept: number
|
||||
tag: string[]
|
||||
category: string[],
|
||||
data: ObjectID | null
|
||||
hidden: boolean
|
||||
}
|
||||
export interface TestCase {
|
||||
time: number,
|
||||
memory: number,
|
||||
status: number,
|
||||
message: string
|
||||
}
|
||||
export interface Rdoc {
|
||||
_id: ObjectID,
|
||||
pid: ObjectID,
|
||||
uid: number,
|
||||
lang: string,
|
||||
code: string,
|
||||
score: number,
|
||||
memory: number,
|
||||
time: number,
|
||||
judgeTexts: string[],
|
||||
compilerTexts: string[],
|
||||
testCases: TestCase[],
|
||||
rejudged: boolean,
|
||||
judger: string,
|
||||
judgeAt: Date,
|
||||
status: number
|
||||
}
|
||||
export interface Bdoc {
|
||||
_id: string,
|
||||
expireAt: Date
|
||||
}
|
||||
export interface Tdoc {
|
||||
_id: ObjectID
|
||||
beginAt: Date
|
||||
endAt: Date
|
||||
attend: number
|
||||
title: string
|
||||
content: string
|
||||
pids: ObjectID[]
|
||||
}
|
||||
Reference in new issue
Block a user