mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
core&ui: add contest balloon list (#578)
Co-authored-by: undefined <i@undefined.moe>
This commit is contained in:
1 parent
8e8c263477
commit
867cd069c5
15 files changed
+341
-8
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user