cleaned up anilist struct and function
This commit is contained in:
@ -112,6 +112,27 @@ type MediaList struct {
|
||||
} `json:"user"`
|
||||
}
|
||||
|
||||
type StartedAt struct {
|
||||
Year int `json:"year"`
|
||||
Month int `json:"month"`
|
||||
Day int `json:"day"`
|
||||
}
|
||||
type CompletedAt struct {
|
||||
Year int `json:"year"`
|
||||
Month int `json:"month"`
|
||||
Day int `json:"day"`
|
||||
}
|
||||
type AniListUpdateVariables struct {
|
||||
MediaId int `json:"mediaId"`
|
||||
Progress int `json:"progress"`
|
||||
Status string `json:"status"`
|
||||
Score float64 `json:"score"`
|
||||
Repeat int `json:"repeat"`
|
||||
Notes string `json:"notes"`
|
||||
StartedAt StartedAt `json:"startedAt"`
|
||||
CompletedAt CompletedAt `json:"completedAt"`
|
||||
}
|
||||
|
||||
//var MediaListSort = struct {
|
||||
// MediaId string
|
||||
// MediaIdDesc string
|
||||
|
Reference in New Issue
Block a user