implement command update-title
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
Thomas Peetz
2026-10-12 17:37:06 +02:00
parent f5e9cbc423
commit 4c603a8eff
8 changed files with 145 additions and 31 deletions
+11
View File
@@ -20,6 +20,17 @@ type MediaLoFi struct {
FileName string `gorm:"column:file_name" json:"file_name"`
}
func (media_lofi *MediaLoFi) Update(update MediaLoFiDTO) {
media_lofi.CreatedAt = update.CreatedAt.Time
media_lofi.UpdatedAt = time.Now()
media_lofi.Version = media_lofi.Version + 1
media_lofi.WebLink = update.WebLink
media_lofi.Review = update.Review
media_lofi.ShouldDownload = update.ShouldDownload
media_lofi.Title = update.Title
media_lofi.FileName = update.FileName
}
func (media_lofi *MediaLoFi) TableName() string {
return "media_lofi"
}