core: add contest/edit and contest/del hook

This commit is contained in:
undefined committed 2024-07-23 01:40:39 +08:00
1 parent c9d10a97a2
commit 413464163c
7 files changed
+21 -16

No files matched your search

+2
View File
@@ -83,9 +83,11 @@ export interface EventMap extends KnownHandlerEvents {
'contest/before-add': (payload: Partial<Tdoc>) => VoidReturn
'contest/add': (payload: Partial<Tdoc>, id: ObjectId) => VoidReturn
'contest/edit': (payload: Tdoc) => VoidReturn
'contest/list': (query: Filter<Tdoc>, handler: any) => VoidReturn
'contest/scoreboard': (tdoc: Tdoc, rows: ScoreboardRow[], udict: BaseUserDict, pdict: ProblemDict) => VoidReturn
'contest/balloon': (domainId: string, tid: ObjectId, bdoc: ContestBalloonDoc) => VoidReturn
'contest/del': (domainId: string, tid: ObjectId) => VoidReturn
'oplog/log': (type: string, handler: Handler, args: any, data: any) => VoidReturn;