refactor: 모델에 JSON 태그 추가 및 gorm.Model 인라인 확장
All checks were successful
Server CI/CD / deploy (push) Successful in 35s

camelCase JSON 필드명으로 통일, PasswordHash json:"-" 처리

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 14:32:11 +09:00
parent 05d6d5af4d
commit ec6ac35ac7
3 changed files with 36 additions and 15 deletions

View File

@@ -1,11 +1,18 @@
package download
import "gorm.io/gorm"
import (
"time"
"gorm.io/gorm"
)
type Info struct {
gorm.Model
URL string `gorm:"not null"`
Version string `gorm:"not null"`
FileName string `gorm:"not null"`
FileSize string `gorm:"not null"`
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
URL string `json:"url" gorm:"not null"`
Version string `json:"version" gorm:"not null"`
FileName string `json:"fileName" gorm:"not null"`
FileSize string `json:"fileSize" gorm:"not null"`
}