fix 修复provider的id没有返回的bug

This commit is contained in:
timerzz 2024-08-27 13:57:04 +08:00
parent 9b831ac7d7
commit bb10f842f3
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import (
type ProviderId string type ProviderId string
type Provider struct { type Provider struct {
ID uint `gorm:"primary_key" json:"-"` ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"createdAt"` CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"` UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index"` DeletedAt gorm.DeletedAt `gorm:"index"`

View File

@ -10,7 +10,7 @@ type SellerId string
// Seller 出货商 // Seller 出货商
type Seller struct { type Seller struct {
ID uint `gorm:"primary_key" json:"-"` ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"createdAt"` CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"` UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index"` DeletedAt gorm.DeletedAt `gorm:"index"`