Compare commits
2 Commits
8fc667daee
...
faf973accb
| Author | SHA1 | Date | |
|---|---|---|---|
| faf973accb | |||
| 9fdfad369f |
@@ -135,6 +135,7 @@ func initWorkerServices(stores *queue.WorkerStores, deps *WorkerDependencies) *q
|
||||
walletDebitEvents := walletinfra.NewDebitEventWriter(walletOutbox)
|
||||
orderService.SetAgentWalletReservationService(walletapp.NewReservationService(walletinfra.NewReservationEventWriter(walletOutbox), walletDebitEvents, nil))
|
||||
orderService.SetAgentWalletDebitService(walletapp.NewDebitService(walletDebitEvents, nil))
|
||||
orderService.SetObservationSeriesEventWriter(observationSeriesEvents)
|
||||
|
||||
// 创建停复机服务并注入回调:流量耗尽自动停机、套餐激活/重置/支付后自动复机
|
||||
stopResumeService := iotCardSvc.NewStopResumeService(
|
||||
|
||||
@@ -1074,6 +1074,7 @@ func (s *Service) toDeviceResponse(device *model.Device, shopMap map[uint]string
|
||||
BoundCardCount: int(bindingCounts[device.ID]),
|
||||
SeriesID: device.SeriesID,
|
||||
ActivatedAt: device.ActivatedAt,
|
||||
RealnamePolicy: device.RealnamePolicy,
|
||||
CreatedAt: device.CreatedAt,
|
||||
UpdatedAt: device.UpdatedAt,
|
||||
OnlineStatus: device.OnlineStatus,
|
||||
|
||||
@@ -492,6 +492,7 @@ func (s *Service) toStandaloneResponse(card *model.IotCard, shopMap map[uint]str
|
||||
EnablePolling: card.EnablePolling,
|
||||
SeriesID: card.SeriesID,
|
||||
DeviceVirtualNo: card.DeviceVirtualNo,
|
||||
RealnamePolicy: card.RealnamePolicy,
|
||||
AssetStatus: card.AssetStatus,
|
||||
AssetStatusName: constants.GetAssetStatusName(card.AssetStatus),
|
||||
Generation: card.Generation,
|
||||
|
||||
Reference in New Issue
Block a user