Implement appointment reading

This commit is contained in:
daru
2022-05-14 13:55:22 +02:00
parent bbf99fadb4
commit 50e0defc28
6 changed files with 74 additions and 9 deletions

View File

@@ -8,9 +8,10 @@ type AnimeUser struct {
}
type AnimeUserExtended struct {
Anime int64 `json:"anime"`
Users []WatchUser `json:"users"`
Data Anime `json:"data"`
Anime int64 `json:"anime"`
Users []WatchUser `json:"users"`
Data Anime `json:"data"`
Appointments []Appointment `json:"appointments"`
}
type Anime struct {
@@ -52,6 +53,12 @@ type AnimeStudio struct {
Name string `json:"name"`
}
type Appointment struct {
Anime int64 `json:"anime"`
Time time.Time `json:"date"`
Users []string `json:"users"`
}
type WatchUser struct {
Username string `json:"username"`
MalID int64 `json:"malId"`