50 lines
2.6 KiB
Go
50 lines
2.6 KiB
Go
// Package consts
|
|
// @Link https://github.com/xiujiecn/xiu-admin
|
|
// @Copyright Copyright (c) 2025 LiXiujie
|
|
// @Author Lxj <xxx@example.com>
|
|
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
|
package consts
|
|
|
|
const (
|
|
QueueSysOptLog = "queue:sys_opt_log"
|
|
QueueTrafficUsageDailyRetry = "iotlcm.traffic_usage.daily.retry"
|
|
QueueTrafficUsageMonthlyRetry = "iotlcm.traffic_usage.monthly.retry"
|
|
// QueueTrafficUsageMonthlyStart carries one command per full monthly usage run.
|
|
// Worker consumes it and owns database scanning and Redis production.
|
|
QueueTrafficUsageMonthlyStart = "iotlcm.traffic_usage.monthly.start"
|
|
// QueueTrafficUsageDailyStart carries one command per full daily usage run.
|
|
// Worker consumes it and owns database scanning and Redis production.
|
|
QueueTrafficUsageDailyStart = "iotlcm.traffic_usage.daily.start"
|
|
// QueueTrafficUsageMonthlyHistoryStart carries one command per full monthly
|
|
// usage history run (the TDengine monthly table).
|
|
QueueTrafficUsageMonthlyHistoryStart = "iotlcm.traffic_usage.monthly_history.start"
|
|
QueueSimStatusQueueStart = "iotlcm.sim_status.queue.start"
|
|
QueueImeiQueueStart = "iotlcm.imei.queue.start"
|
|
QueueSimStatusQueueTask = "iotlcm.sim_status.queue.task"
|
|
QueueWorkOrderAutoClose = "iotlcm.work_order.auto_close"
|
|
QueueWorkOrderAutoCloseDelay = "iotlcm.work_order.auto_close.delay"
|
|
QueueWorkerDiagnostic = "iotlcm.worker.diagnostic"
|
|
QueueBatchExecute = "iotlcm.batch.execute"
|
|
QueueBatchOutboundExecute = "iotlcm.batch.outbound.execute"
|
|
QueueBalanceRechargeTimeout = "iotlcm.balance.recharge.timeout"
|
|
QueueBalanceRechargeDelay = "iotlcm.balance.recharge.delay"
|
|
QueuePackageCustomerSync = "iotlcm.package_customer.sync"
|
|
QueueChannelRefresh = "iotlcm.channel.refresh"
|
|
// QueueDataReviewQuery carries the manual "sync upstream result" command.
|
|
// Worker only re-reads existing operationIds/jobIds, never resubmits.
|
|
QueueDataReviewQuery = "iotlcm.data.review.query"
|
|
QueueAgentRoleSync = "iotlcm.agent.role.sync"
|
|
QueueAgentRoleSyncRetry = "iotlcm.agent.role.sync.retry"
|
|
QueueAgentRoleSyncDeadLetter = "iotlcm.agent.role.sync.dlq"
|
|
)
|
|
|
|
// 数据库变动类型
|
|
const (
|
|
DbChgTypeAdd = "add" // 数据库变动新增
|
|
DbChgTypeEdit = "edit" // 数据库变动编辑
|
|
DbChgTypeDel = "del" // 数据库变动删除
|
|
)
|
|
const (
|
|
BroadcastDbChg = "broadcast:db:chg" // 数据库配置表变动更新广播消息 obj{table_name,pk,type:add/edit/del,data:{主要字段数据}}
|
|
)
|