Files
one-pipe-system/openspec/changes/add-carrier-traffic-threshold-hit-query/proposal.md
luo 5364916b1d
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 54s
fix: 运营商管理
2026-09-29 09:15:05 +08:00

25 lines
1.5 KiB
Markdown
Raw 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.
# Change: 新增运营商通道阈值命中记录查询
## Why
达量停机与周期恢复需要可追溯的数字证据。运营人员需要查询每次停机判定时冻结的累计流量、实际阈值、计费周期、触发来源,以及周期解锁和复机结果;通道阈值后续变更不能影响历史记录。
## What Changes
- 在运营商管理页提供“通道阈值命中记录”入口,打开独立只读查询页并接入 `GET /api/admin/carrier-traffic-threshold-hits`。
- 支持按运营商通道 ID、IoT 卡 ID、计费周期起点精确匹配,并按判定时间闭区间筛选。
- 展示命中时的流量和阈值快照、判定/触发信息、锁状态、解锁时间、复机结果及安全失败原因。
- 仅超级管理员与平台账号可访问;数据范围过滤及越权资源不可区分由后端强制执行,前端不替代后端授权。
- 对接口定义的空历史值使用明确的“无”或“未处理/历史记录”展示,不发起额外的通道阈值或上游接口查询。
## Impact
- Affected specs: `carrier-traffic-threshold-hits`
- Affected code:
- `src/api/modules/carrierTrafficThresholdHit.ts`
- `src/types/api/carrierTrafficThresholdHit.ts`
- `src/views/system/carrier-traffic-threshold-hits/index.vue`
- `src/router/routesAlias.ts`, `src/router/routes/staticRoutes.ts`, `src/views/system/carrier-management/index.vue`
- `src/locales/langs/zh.json`, `src/locales/langs/en.json`
- Breaking changes: 无;仅新增只读查询接口消费与页面入口。