Skip to content

Commit 1e8710c

Browse files
committed
fix: error time words for share
1 parent b8854af commit 1e8710c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/app/model/share.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ type Share struct {
1818
DownTimes int64 `json:"down_times" gorm:"not null"`
1919
ViewTimes int64 `json:"view_times" gorm:"not null"`
2020
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:"-"`
21+
CreateAt time.Time `json:"created" gorm:"autoCreateTime;not null"` // 这里的CreateAt应该是CreatedAt,但是先将错就错吧
22+
UpdateAt time.Time `json:"updated" gorm:"autoUpdateTime;not null"` // 这里的UpdateAt应该是UpdatedAt,但是先将错就错吧
23+
DeletedAt *time.Time `json:"-"`
2424
}
2525

2626
func (Share) TableName() string {

0 commit comments

Comments
 (0)