core&ui: add contest balloon list (#578)

Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
pandaandundefined authored and GitHub committed 2023-11-05 02:51:25 +08:00
1 parent 8e8c263477
commit 867cd069c5
15 files changed
+341 -8

No files matched your search

+14
View File
@@ -393,6 +393,7 @@ export interface Tdoc<docType = document['TYPE_CONTEST'] | document['TYPE_TRAINI
lockAt?: Date;
unlocked?: boolean;
autoHide?: boolean;
balloon?: Record<number, string>;
/**
* In hours
@@ -651,6 +652,18 @@ export interface DiscussionHistoryDoc {
ip: string;
}
export interface ContestBalloonDoc {
_id: ObjectId;
domainId: string;
tid: ObjectId;
pid: number;
uid: number;
first?: boolean;
/** Sent by */
sent?: number;
sentAt?: Date;
}
declare module './service/db' {
interface Collections {
'blacklist': BlacklistDoc;
@@ -678,6 +691,7 @@ declare module './service/db' {
'event': EventDoc;
'opcount': OpCountDoc;
'schedule': Schedule;
'contest.balloon': ContestBalloonDoc;
}
}