Files
junhong_cmp_fiber/internal/domain/carrierthreshold/evaluation.go
break 59b3df868a
All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 12m59s
feat(通道流量阈值): AUG26-011 运营商通道流量阈值达量停机与周期复机
2026-09-16 15:54:49 +08:00

19 lines
681 B
Go
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.
package carrierthreshold
import "time"
// Evaluation 是一次通道阈值达量判定所需的卡与读数事实。
//
// 读数只来自运营商回传的网关累计读数IoT 卡的 last_gateway_reading_mb
// 不使用本地用量统计、当月用量或套餐真流量ObservedAt 决定该读数所属的计费周期。
type Evaluation struct {
// CardID 是触发判定的物联网卡 ID。
CardID uint
// CarrierID 是卡当前所属运营商 ID决定阈值配置与周期起点。
CarrierID uint
// ReadingMB 是本次已接受的运营商网关累计读数。
ReadingMB float64
// ObservedAt 是本次读数的观测时刻。
ObservedAt time.Time
}