From 4a6cec27303fccf8294199be26aec291fca4d2de Mon Sep 17 00:00:00 2001 From: break Date: Sun, 20 Sep 2026 10:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=8D=A1=E7=BB=91=E5=AE=9A=E6=9F=A5=E8=AF=A2=E6=98=A0?= =?UTF-8?q?=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/store/postgres/device_sim_binding_store.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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").