26 lines
581 B
Go
26 lines
581 B
Go
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"`
|
|
}
|