feat(modpacks): implement simple zip importer and API
This commit is contained in:
22
internal/models/modpack.go
Normal file
22
internal/models/modpack.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user