ryan
7651c57536
feat(规则管理): 规则查询接口返回关联通知渠道
...
Motivation:
前端在展示规则详情与规则列表时,需要同时看到每条规则绑定了哪些通知渠道以及各渠道的启用状态。此前规则接口只返回规则本身,渠道绑定信息需要额外请求才能获取,增加了交互成本。本次让规则读取接口一次性携带关联渠道信息。
Changes:
* 规则模型新增 Channels 字段及渠道条目结构,包含渠道标识、名称、类型和按规则维度的启用开关
* 创建、查询单条、列表查询规则接口在返回结果时填充绑定的渠道信息,无绑定时返回空列表
* 新增批量查询规则与渠道绑定关系的数据访问能力,按规则聚合返回,避免列表场景下逐条查询
* 单个渠道数据读取失败时跳过该条目,不阻断整体结果返回
2026-08-18 14:09:02 +08:00
ryan
0f9f154969
feat(规则): 支持名称代号,便于区分和管理
...
创建与更新规则时必填全局唯一 name,已有规则迁移回填为 rule-{id}。
2026-08-17 00:01:34 +08:00
ryan
6f846a0a3c
feat: subscribe to RabbitMQ trade signals and notify by rules
...
Consume configurable queues, format signals (including period), share NotifyService with HTTP, and drop duplicate bodies within 1h.
2026-08-15 17:34:49 +08:00
ryan
2000908bac
feat: enhance Safew watcher initialization and token management
...
- Added functionality to list and start Safew tokens in the main server function, ensuring proper initialization of the Safew watcher.
- Introduced `ensureSafewWatcher` method in the ChannelHandler to manage Safew tokens during channel creation and updates.
- Implemented `StartTokens` method in the Watcher to handle multiple tokens efficiently.
- Enhanced error handling and logging for Safew watcher operations to improve observability.
2026-08-15 01:28:51 +08:00
ryan
bd8a9ff96d
feat: 增加 SafeW 已监控群列表接口
...
通过 getUpdates 将群写入 Redis,供创建/编辑渠道时选择 chat_id,避免前端重复传递 token。
2026-08-15 00:40:40 +08:00
ryan
39f3774940
feat: 配置列表分页与钉钉机器人分钟级排队限流
...
统一 sources/templates/channels/rules 列表为分页响应,避免配置增多时全量返回;按钉钉 access_token 限制每分钟发送并在超限时等待下一分钟,降低触发官方封禁风险。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-08-10 00:34:26 +08:00
ryan
835b92ec00
fix: wire retry into router, fix Docker config path, fix condition error handling, remove dead code
2026-06-27 13:32:33 +08:00
ryan
8e0c95edd9
feat: rule CRUD with enable/disable and message log query
2026-06-27 13:23:37 +08:00
ryan
682ca3df81
feat: management handlers — source, template, channel CRUD
2026-06-27 13:23:10 +08:00
ryan
2cf6601be0
feat: notify handler — parse, match, evaluate, render, route
2026-06-27 13:22:14 +08:00
ryan
127cf12656
feat: auth and rate limit middleware
2026-06-27 13:20:56 +08:00