mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
feat(push-task): connect notification module with task module
- Add task_type to w_push_events table and GORM models. - Implement OnTaskCompleted callback hook in task executor to avoid circular dependencies. - Implement task listener in push package to trigger notifications on task completion. - Automatically resolve User objects from payload and results. - Enhance UI to select task completed events and preview default templates. - Update Swagger documentation.
This commit is contained in:
@@ -5,6 +5,7 @@ export interface PushEvent {
|
||||
id: number;
|
||||
event_key: string;
|
||||
name: string;
|
||||
task_type?: string;
|
||||
channels: string[];
|
||||
targets: string[];
|
||||
template: string;
|
||||
@@ -71,7 +72,8 @@ export interface EventMetadata {
|
||||
}
|
||||
|
||||
export interface CreatePushEventRequest {
|
||||
event_key: string;
|
||||
event_key?: string;
|
||||
task_type?: string;
|
||||
channels: string[];
|
||||
targets?: string[];
|
||||
template?: string;
|
||||
|
||||
Reference in New Issue
Block a user