Change ModifyTime to UpdateTime.

This commit is contained in:
zicla
2018-11-23 20:27:57 +08:00
parent b557e9717a
commit 3a5c4f6302
9 changed files with 15 additions and 15 deletions

View File

@ -109,7 +109,7 @@ func (this *ImageCacheDao) Create(imageCache *ImageCache) *ImageCache {
timeUUID, _ := uuid.NewV4()
imageCache.Uuid = string(timeUUID.String())
imageCache.CreateTime = time.Now()
imageCache.ModifyTime = time.Now()
imageCache.UpdateTime = time.Now()
db := this.context.DB.Create(imageCache)
this.PanicError(db.Error)
@ -119,7 +119,7 @@ func (this *ImageCacheDao) Create(imageCache *ImageCache) *ImageCache {
//修改一个文件
func (this *ImageCacheDao) Save(imageCache *ImageCache) *ImageCache {
imageCache.ModifyTime = time.Now()
imageCache.UpdateTime = time.Now()
db := this.context.DB.Save(imageCache)
this.PanicError(db.Error)