diff --git a/internal/store/postgres/device_sim_binding_store.go b/internal/store/postgres/device_sim_binding_store.go index 4917fd5f..359e33fe 100644 --- a/internal/store/postgres/device_sim_binding_store.go +++ b/internal/store/postgres/device_sim_binding_store.go @@ -196,7 +196,9 @@ func (s *DeviceSimBindingStore) GetBoundICCIDs(ctx context.Context, iccids []str } if len(list19) > 0 { - var rows []struct{ ICCID string } + var rows []struct { + ICCID string `gorm:"column:iccid"` + } if err := s.db.WithContext(ctx). Table("tb_device_sim_binding b"). Select("c.iccid_19 AS iccid"). @@ -211,7 +213,9 @@ func (s *DeviceSimBindingStore) GetBoundICCIDs(ctx context.Context, iccids []str } if len(list20) > 0 { - var rows []struct{ ICCID string } + var rows []struct { + ICCID string `gorm:"column:iccid"` + } if err := s.db.WithContext(ctx). Table("tb_device_sim_binding b"). Select("c.iccid_20 AS iccid").