From ca9f7047c6ba6ade3ce65703f1e5fa29dd63b5ec Mon Sep 17 00:00:00 2001
From: zhaoxiaorong <zhaoxiaorong@qq.com>
Date: Tue, 15 Apr 2025 21:49:17 +0800
Subject: [PATCH] =?UTF-8?q?fix=20=E5=85=BC=E5=AE=B9=E6=80=A7=E8=B0=83?=
 =?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 types/db.go | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/types/db.go b/types/db.go
index f20b1d8..4dbde7e 100644
--- a/types/db.go
+++ b/types/db.go
@@ -28,8 +28,8 @@ type (
 	Std_IICUDS struct {
 		ID        uint           `gorm:"primarykey;"  json:"id"`
 		Identity  string         `gorm:"column:identity;type:varchar(36);uniqueIndex;"  json:"identity"` // 唯一标识,24位NanoID,36位为ULID
-		CreatedAt time.Time      `json:"created_at"`
-		UpdatedAt time.Time      `json:"updated_at"`
+		CreatedAt time.Time      `gorm:"" json:"created_at"`
+		UpdatedAt time.Time      `gorm:"" json:"updated_at"`
 		DeletedAt gorm.DeletedAt `gorm:"index;" json:"deleted_at"`
 		Status    int8           `gorm:"default:0;index;" json:"status"` // 状态:默认为0,-1禁止,1为正常
 	}
@@ -37,15 +37,15 @@ type (
 	// standard ID,Identity,Created,Updated,Deleted,Status definition.
 	Std_ICUD struct {
 		ID        uint           `gorm:"primarykey;"  json:"id"`
-		CreatedAt time.Time      `json:"created_at"`
-		UpdatedAt time.Time      `json:"updated_at"`
+		CreatedAt time.Time      `gorm:"" json:"created_at"`
+		UpdatedAt time.Time      `gorm:"" json:"updated_at"`
 		DeletedAt gorm.DeletedAt `gorm:"index;" json:"deleted_at"`
 	}
 
 	// standard ID,Created definition.
 	Std_IdCreated struct {
 		ID        uint      `gorm:"primarykey;"  json:"id"`
-		CreatedAt time.Time `json:"created_at"`
+		CreatedAt time.Time `gorm:"" json:"created_at"`
 	}
 
 	// standard PassportID,PassportIdentity definition.