收口审计治理与套餐任务进展

Constraint: 在线热修前必须保存当前迭代分支全部有效代码进展
Confidence: medium
Scope-risk: broad
Directive: 后续修改需保持审计事件与业务事务边界一致
Tested: git diff --cached --check
Not-tested: 未运行全量测试,提交用于切换分支前保存既有工作
This commit is contained in:
2026-08-05 14:30:54 +08:00
parent b3499adfca
commit 5e552d99bc
178 changed files with 16797 additions and 5674 deletions

View File

@@ -64,12 +64,19 @@ const (
// Gateway 轮询 Integration Log 操作编码。
const (
IntegrationProviderGateway = "gateway" // Gateway 外部系统
IntegrationOperationGatewayRealname = "query_realname_status" // 查询实名状态
IntegrationOperationGatewayTraffic = "query_flow" // 查询流量
IntegrationOperationGatewayNetwork = "query_card_status" // 查询网络状态
IntegrationOperationGatewayDeviceInfo = "query_device_info" // 查询设备信息
IntegrationOperationGatewaySpeedTier = "set_speed_tier" // 设置或恢复固定限速档位
IntegrationProviderGateway = "gateway" // Gateway 外部系统
IntegrationOperationGatewayRealname = "query_realname_status" // 查询实名状态
IntegrationOperationGatewayTraffic = "query_flow" // 查询流量
IntegrationOperationGatewayNetwork = "query_card_status" // 查询网络状态
IntegrationOperationGatewayDeviceInfo = "query_device_info" // 查询设备信息
IntegrationOperationGatewaySpeedTier = "set_speed_tier" // 设置或恢复固定限速档位
IntegrationOperationGatewayStopCard = "stop_card" // 停机
IntegrationOperationGatewayStartCard = "start_card" // 复机
IntegrationOperationGatewaySetWiFi = "set_device_wifi" // 设置设备 Wi-Fi
IntegrationOperationGatewaySwitchMode = "set_device_switch_mode" // 设置设备切卡模式
IntegrationOperationGatewaySwitchCard = "switch_device_card" // 切换设备当前卡
IntegrationOperationGatewayReboot = "reboot_device" // 重启设备
IntegrationOperationGatewayReset = "reset_device" // 恢复设备出厂设置
)
// Gateway 固定限速档位编码。
@@ -122,6 +129,15 @@ func GetGatewaySpeedTierName(code int) string {
// GatewaySpeedTierUnknownRecoveryStrategy 表示限速超时后的人工核对策略。
const GatewaySpeedTierUnknownRecoveryStrategy = "通过 Gateway 运维侧按 ICCID 核对当前限速档位后,再决定是否重试"
// GatewayQueryUnknownRecoveryStrategy 表示 Gateway 查询结果未知时的人工核对策略。
const GatewayQueryUnknownRecoveryStrategy = "通过 Gateway 运维侧按 ICCID 核对查询结果,并结合后续轮询确认内部状态"
// GatewayCardCommandUnknownRecoveryStrategy 表示停复机命令结果未知时的人工核对策略。
const GatewayCardCommandUnknownRecoveryStrategy = "通过 Gateway 运维侧按 ICCID 核对实际停复机状态后,再决定是否重试"
// GatewayDeviceCommandUnknownRecoveryStrategy 表示设备命令超时后的人工核对策略。
const GatewayDeviceCommandUnknownRecoveryStrategy = "通过 Gateway 运维侧按设备 IMEI 核对命令实际执行结果后,再决定是否重试"
// 卡实名观测场景
const (
CardObservationSceneRealnamePolling = "realname_polling" // 实名轮询