Files
a301_server/internal/download/model.go
tolelom f547593c6f
All checks were successful
Server CI/CD / deploy (push) Successful in 36s
feat: launcher.exe와 game.zip 별도 업로드/서빙 분리
- POST /api/download/upload/game - 게임 zip 업로드
- POST /api/download/upload/launcher - launcher.exe 업로드
- GET /api/download/launcher - launcher.exe 서빙
- Info 모델에 LauncherURL, LauncherSize 필드 추가
- Content-Disposition 헤더로 올바른 파일명 설정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 23:34:09 +09:00

22 lines
759 B
Go

package download
import (
"time"
"gorm.io/gorm"
)
type Info struct {
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"`
FileHash string `json:"fileHash" gorm:"not null;default:''"`
LauncherURL string `json:"launcherUrl" gorm:"not null;default:''"`
LauncherSize string `json:"launcherSize" gorm:"not null;default:''"`
}