From 1ab4ecc5942c1eae407776ec19d1ef32adac3247 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 3 Sep 2024 17:38:45 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0updateAt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- structs/v2/provider.go | 1 + structs/v2/seller.go | 1 + 2 files changed, 2 insertions(+) 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 // 货号