diff --git a/structs/v2/provider.go b/structs/v2/provider.go index 7875488..49e07ab 100644 --- a/structs/v2/provider.go +++ b/structs/v2/provider.go @@ -9,7 +9,7 @@ import ( type ProviderId string type Provider struct { - ID uint `gorm:"primary_key" json:"-"` + ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt gorm.DeletedAt `gorm:"index"` diff --git a/structs/v2/seller.go b/structs/v2/seller.go index d5a4cb0..f0eeeca 100644 --- a/structs/v2/seller.go +++ b/structs/v2/seller.go @@ -10,7 +10,7 @@ type SellerId string // Seller 出货商 type Seller struct { - ID uint `gorm:"primary_key" json:"-"` + ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt gorm.DeletedAt `gorm:"index"`