feat(modpacks): implement simple zip importer and API

This commit is contained in:
2025-06-18 12:41:27 +03:00
parent 5e609017f0
commit ca182d6d6f
9 changed files with 274 additions and 45 deletions

View File

@@ -0,0 +1,22 @@
package models
import "time"
// Modpack представляет запись в таблице 'modpacks'
type Modpack struct {
ID int `json:"id"`
Name string `json:"name"`
DisplayName string `json:"display_name"`
MinecraftVersion string `json:"minecraft_version"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
}
// ModpackFile представляет метаданные одного файла в модпаке
type ModpackFile struct {
ModpackID int
RelativePath string
FileHash string
FileSize int64
DownloadURL string
}