b6592fe185
* feat: parallel apply view * chore: cleaner readme * chore: lint * chore: remove debug logging * chore: lint
32 lines
778 B
Go
32 lines
778 B
Go
package ficsit
|
|
|
|
type AllVersionsResponse struct {
|
|
Error *Error `json:"error,omitempty"`
|
|
Data []ModVersion `json:"data,omitempty"`
|
|
Success bool `json:"success"`
|
|
}
|
|
|
|
type ModVersion struct {
|
|
ID string `json:"id"`
|
|
Version string `json:"version"`
|
|
Dependencies []Dependency `json:"dependencies"`
|
|
Targets []Target `json:"targets"`
|
|
}
|
|
|
|
type Dependency struct {
|
|
ModID string `json:"mod_id"`
|
|
Condition string `json:"condition"`
|
|
Optional bool `json:"optional"`
|
|
}
|
|
|
|
type Target struct {
|
|
VersionID string `json:"version_id"`
|
|
TargetName string `json:"target_name"`
|
|
Hash string `json:"hash"`
|
|
Size int64 `json:"size"`
|
|
}
|
|
|
|
type Error struct {
|
|
Message string `json:"message"`
|
|
Code int64 `json:"code"`
|
|
}
|