GoRacerr/race.go

33 lines
978 B
Go
Raw Permalink Normal View History

2024-08-30 12:36:47 +07:00
package main
type Race struct {
2024-09-01 08:13:28 +07:00
ID int64 `json:"id"`
TorrentName string `json:"torrentname"`
Category string `json:"category"`
Indexer string `json:"indexer"`
Type string `json:"type"`
Title string `json:"title"`
Season string `json:"season"`
Episode string `json:"episode"`
Year string `json:"year"`
Resolution string `json:"resolution"`
Source string `json:"source"`
TorrentURL string `json:"torrenturl"`
TorrentFile string `json:"torrentfile"`
NFOFile string `json:"nfofile"`
OriginalPath string `json:"originalpath"`
Won int `json:"won"`
PreRace int `json:"prerace"`
PreRaceStarted int64 `json:"prerace_added_at"`
RaceStarted int64 `json:"race_added_at"`
RaceEnded int64 `json:"race_ended_at"`
2024-08-30 12:36:47 +07:00
}
2024-08-30 18:02:07 +07:00
func NewRace() *Race {
2024-09-01 08:13:28 +07:00
return &Race{
TorrentURL: "",
TorrentFile: "",
NFOFile: "",
OriginalPath: ""}
2024-08-30 12:36:47 +07:00
}