feat: 新增外部系统集成和 Webhook 出站#586
Open
zhiqicloud wants to merge 2 commits into
Open
Conversation
- 新增外部系统入口配置、后端校验和按角色可见的公开读取接口 - 接入管理员模块菜单、用户侧导航、嵌入页和 SVG 图标上传校验 - 复用现有系统配置存储,不新增数据库表、字段或迁移
79e4f26 to
bf8b956
Compare
- 新增 Webhook Endpoint 管理、签名投递、测试发送、投递日志、手动重试和后台 worker
- 接入用户注册、充值、API Key 创建、Provider 异常、余额不足等事件投递,并预留风控命中事件类型
- 前端新增 Webhook 出站页面,并在外部系统集成页内提供 Webhook 出站入口
数据库变更:
- 新增迁移:crates/aether-data/migrations/{mysql,postgres,sqlite}/20260527010000_add_webhook_notifications.sql
- 新增三张表:webhook_endpoints、webhook_deliveries、webhook_delivery_attempts
- webhook_endpoints 存 Endpoint 配置、加密 secret、事件过滤、超时/重试参数和最近测试结果
- webhook_deliveries 存事件 payload、状态、尝试次数、下次重试时间、租约、最后失败原因和响应摘要
- webhook_delivery_attempts 存单次投递尝试的 HTTP 状态、错误、响应摘要、耗时和时间戳
- 同步 logical schema、Postgres bootstrap、MySQL/Postgres/SQLite generated baseline 与 manifest
- 接入 MySQL/Postgres/SQLite webhook_notifications repository,并挂到 data backend 读写入口
bf8b956 to
a5e8107
Compare
f4a0a06 to
a5e8107
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
把外部系统入口和 Webhook 出站拆开,避免外部系统集成模块依赖数据库迁移才能使用。
What Changed
Verification
cargo test -p aether-admin webhook_outbound_module_validation_depends_on_storage_availability --libcargo check -p aether-gateway --libnpm run type-check --prefix frontend