feat: swagger

This commit is contained in:
Blizzard
2025-09-16 14:27:32 +08:00
parent 79c19bc47c
commit 237ac665e6
19 changed files with 4690 additions and 91 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ type BaseModel struct {
Id string `gorm:"size:50;primaryKey" json:"id"` // 主键ID
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"deletedAt"` // 删除时间
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}
// BeforeCreate 定义一个钩子,在创建之前执行自动插入字段