improved model
This commit is contained in:
parent
a743768661
commit
9e6c4a3313
@ -1,10 +1,7 @@
|
||||
package model
|
||||
|
||||
import "git.milar.in/milarin/anilist"
|
||||
|
||||
type ParsedFile struct {
|
||||
FileName string
|
||||
Anime *anilist.Media
|
||||
Episode int
|
||||
Parser *Parser
|
||||
}
|
||||
|
@ -1,10 +1,8 @@
|
||||
package model
|
||||
|
||||
import "git.milar.in/milarin/anilist"
|
||||
|
||||
type ParsedTorrent struct {
|
||||
Torrent *Torrent
|
||||
Anime *anilist.Media
|
||||
Name string
|
||||
Episode int
|
||||
Parser *Parser
|
||||
}
|
||||
|
16
torrent.go
16
torrent.go
@ -3,14 +3,14 @@ package model
|
||||
import "time"
|
||||
|
||||
type Torrent struct {
|
||||
ID TorrentID `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Link string `json:"link"`
|
||||
Time time.Time `json:"time"`
|
||||
Seeders int `json:"seeders"`
|
||||
Leechers int `json:"leechers"`
|
||||
Downloads int `json:"downloads"`
|
||||
Trusted bool `json:"trusted"`
|
||||
ID TorrentID
|
||||
Title string
|
||||
Link string
|
||||
Time time.Time
|
||||
Seeders int
|
||||
Leechers int
|
||||
Downloads int
|
||||
Trusted bool
|
||||
}
|
||||
|
||||
type TorrentID string
|
||||
|
Loading…
Reference in New Issue
Block a user