feat(modpacks): implement simple zip importer and API
This commit is contained in:
1 parent
5e609017f0
commit
ca182d6d6f
9 files changed
+274
-45
No files matched your search
@@ -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