修改 Bootstrap 注入 Gateway Client 依赖到 IotCardHandler 和 DeviceHandler

This commit is contained in:
2026-02-02 17:27:59 +08:00
parent 80f560df33
commit 246ea6e287
8 changed files with 187 additions and 14 deletions

View File

@@ -30,9 +30,9 @@ func initHandlers(svc *services, deps *Dependencies) *Handlers {
EnterpriseDeviceH5: h5.NewEnterpriseDeviceHandler(svc.EnterpriseDevice),
Authorization: admin.NewAuthorizationHandler(svc.Authorization),
MyCommission: admin.NewMyCommissionHandler(svc.MyCommission),
IotCard: admin.NewIotCardHandler(svc.IotCard),
IotCard: admin.NewIotCardHandler(svc.IotCard, deps.GatewayClient),
IotCardImport: admin.NewIotCardImportHandler(svc.IotCardImport),
Device: admin.NewDeviceHandler(svc.Device),
Device: admin.NewDeviceHandler(svc.Device, deps.GatewayClient),
DeviceImport: admin.NewDeviceImportHandler(svc.DeviceImport),
AssetAllocationRecord: admin.NewAssetAllocationRecordHandler(svc.AssetAllocationRecord),
Storage: admin.NewStorageHandler(deps.StorageService),