Initial commit
This commit is contained in:
25
backend/internal/models/modlist.go
Normal file
25
backend/internal/models/modlist.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type ModEntry struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Enabled bool `json:"enabled"`
|
||||
}
|
||||
|
||||
type Modlist struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Mods []ModEntry `json:"mods"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
|
||||
type ModlistListItem struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
ModCount int `json:"mod_count"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
17
backend/internal/models/settings.go
Normal file
17
backend/internal/models/settings.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type ServerSettings struct {
|
||||
IPPort string `json:"ip_port"`
|
||||
ServerParameters string `json:"server_parameters"`
|
||||
SteamBranch string `json:"steam_branch"`
|
||||
SteamUser string `json:"steam_user"`
|
||||
Platform string `json:"platform"`
|
||||
CBASettings string `json:"cba_settings"`
|
||||
AILevelPresets string `json:"ai_level_presets"`
|
||||
DifficultyPresets string `json:"difficulty_presets"`
|
||||
ActiveConfig string `json:"active_config"`
|
||||
ActiveModlist string `json:"active_modlist"`
|
||||
UpdatedAt time.Time `json:"updated_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user