sync: 同步 v1.0.4 开源代码并脱敏

This commit is contained in:
MiFaZhan
2026-10-29 14:52:43 +08:00
parent 32e4316ee4
commit 6893e21f07
136 changed files with 9851 additions and 436 deletions
+14
View File
@@ -56,6 +56,11 @@ type ImeiQueueStartHandler interface {
Produce(context.Context, model.ImeiQueueStartMessage) error
}
// DataReviewQueryHandler 执行"手动同步上游结果":只读补查既有 operationId。
type DataReviewQueryHandler interface {
QueryReviewBatch(ctx context.Context, batchNo string) (int, error)
}
type Consumers struct {
trafficUsage TrafficUsageHandler
workOrder WorkOrderHandler
@@ -72,6 +77,14 @@ type Consumers struct {
simStatusQueueStart SimStatusQueueStartHandler
simStatusQueueTask SimStatusQueueTaskHandler
imeiQueueStart ImeiQueueStartHandler
dataReview DataReviewQueryHandler
}
// WithDataReviewQuery adds the manual "sync upstream result" consumer without
// changing any existing RabbitMQ consumer wiring.
func (c *Consumers) WithDataReviewQuery(handler DataReviewQueryHandler) *Consumers {
c.dataReview = handler
return c
}
// WithDailyUsageStart adds the previous-day usage producer without changing any
@@ -145,6 +158,7 @@ func (c *Consumers) initializers(workerDiagnosticEnabled bool) []func(context.Co
c.initBalanceRechargeTimeout,
c.initBatchExecute,
c.initChannelRefresh,
c.initDataReviewQuery,
}
if c.packageCustomerSync != nil {
initializers = append(initializers, c.initPackageCustomerSync)