We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8854af commit 1e8710cCopy full SHA for 1e8710c
internal/app/model/share.go
@@ -18,9 +18,9 @@ type Share struct {
18
DownTimes int64 `json:"down_times" gorm:"not null"`
19
ViewTimes int64 `json:"view_times" gorm:"not null"`
20
ExpireAt time.Time `json:"expire_at" gorm:"not null"`
21
- CreateAt time.Time `json:"created" gorm:"not null"`
22
- UpdateAt time.Time `json:"updated" gorm:"not null"`
23
- DeleteAr *time.Time `json:"-"`
+ CreateAt time.Time `json:"created" gorm:"autoCreateTime;not null"` // 这里的CreateAt应该是CreatedAt,但是先将错就错吧
+ UpdateAt time.Time `json:"updated" gorm:"autoUpdateTime;not null"` // 这里的UpdateAt应该是UpdatedAt,但是先将错就错吧
+ DeletedAt *time.Time `json:"-"`
24
}
25
26
func (Share) TableName() string {
0 commit comments