diff --git a/structs/v2/provider.go b/structs/v2/provider.go index eb52243..e4b98c7 100644 --- a/structs/v2/provider.go +++ b/structs/v2/provider.go @@ -51,6 +51,7 @@ type ProviderArticle struct { ID uint `gorm:"primary_key" json:"-"` CreatedAt time.Time `json:"createdAt"` + UpdatedAt time.Time `json:"updatedAt"` // 对应的商品ID ArticleID uint // 货号 diff --git a/structs/v2/seller.go b/structs/v2/seller.go index 7bc3f77..decead8 100644 --- a/structs/v2/seller.go +++ b/structs/v2/seller.go @@ -49,6 +49,7 @@ type SellerOption struct { type SellerArticle struct { ID uint `gorm:"primary_key" json:"-"` CreatedAt time.Time `json:"createdAt"` + UpdatedAt time.Time `json:"updatedAt"` // 商品的ID ArticleID uint // 货号