WebhockTransfer/docs/webhook-relay/ACCEPTANCE_webhook-relay.md
houhuan 2bc7460f1f feat: 初始化Webhook中继系统项目
- 添加FastAPI应用基础结构,包括主入口、路由和模型定义
- 实现Webhook接收端点(/webhook/{namespace})和健康检查(/health)
- 添加管理后台路由和模板,支持端点、目标、渠道和模板管理
- 包含SQLite数据库模型定义和初始化逻辑
- 添加日志记录和统计服务
- 包含Dockerfile和配置示例文件
- 添加项目文档,包括设计、流程图和验收标准
2025-12-21 18:43:12 +08:00

22 lines
691 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 验收记录
## 用例1示例JSON
- 步骤POST /webhook/opps-webhook负载为示例
- 期望:
- 路由至 target_3
- 生成文本包含商户名、支付方式、金额、状态与日期,例如:`【某商户】支付宝 收款 5.50 元状态成功日期20251220`
- 飞书与企业微信推送成功
## 用例2remark未匹配
- 步骤remark为未知值
- 期望:使用 default_targets 或仅通知
## 用例3退款事件
- 步骤:事件为 `refund.standard`
- 期望:从 `actual_ref_amt``ref_amt/settlement_amt` 渲染文本
## 用例4目标不可达
- 步骤模拟目标URL不可达
- 期望:记录失败并按策略重试