mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-03 23:06:36 +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:
+7
-3
@@ -361,6 +361,9 @@ definitions:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
task_type:
|
||||
description: 关联的异步任务类型
|
||||
type: string
|
||||
template:
|
||||
description: 消息模板 JSON
|
||||
type: string
|
||||
@@ -715,10 +718,11 @@ definitions:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
task_type:
|
||||
description: 关联的异步任务类型
|
||||
type: string
|
||||
template:
|
||||
type: string
|
||||
required:
|
||||
- event_key
|
||||
type: object
|
||||
push.Definition:
|
||||
properties:
|
||||
@@ -2268,7 +2272,7 @@ paths:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 绑定系统内置事件、推送渠道、接收目标并创建通知事件配置,需要管理员权限
|
||||
description: 绑定系统内置事件或异步任务、推送渠道、接收目标并创建通知事件配置,需要管理员权限
|
||||
parameters:
|
||||
- description: 创建参数
|
||||
in: body
|
||||
|
||||
Reference in New Issue
Block a user