From f84d9c46574a2cd663105859035bc17891270923 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 14 八月 2023 10:41:54 +0800
Subject: [PATCH] Merge branch 'master' into fly

---
 model/model.go |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/model/model.go b/model/model.go
index 284a594..b95cec5 100644
--- a/model/model.go
+++ b/model/model.go
@@ -5,6 +5,24 @@
 	"time"
 )
 
+// MyModel definitions from gorm.Model
+//
+// swagger:model
+type gormModel struct {
+	// The ID of the item
+	// example: 1
+	ID uint `json:"id"`
+	// The date when the item was created
+	// example: 2023-08-10 15:48:25
+	CreatedAt time.Time `json:"created_at"`
+	// The date when the item was last updated
+	// example: 2023-08-10 15:48:25
+	UpdatedAt time.Time `json:"updated_at"`
+	// The date when the item was deleted
+	// example: 2023-08-10 15:48:25
+	DeletedAt *time.Time `json:"deleted_at,omitempty"`
+}
+
 type CrmModel struct {
 	gorm.Model  `json:"-"`
 	CreatorId   int       `json:"-" gorm:"column:creator_id;type:int;comment:鍒涘缓浜篿d"`

--
Gitblit v1.8.0