fix 修复provider的id没有返回的bug
This commit is contained in:
parent
9b831ac7d7
commit
bb10f842f3
@ -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"`
|
||||
|
@ -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"`
|
||||
|
Loading…
Reference in New Issue
Block a user