-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
package entity | ||
|
||
type ViewingHistory struct { | ||
ID string `json:"id"` | ||
UserID string `json:"userID"` | ||
EpisodeID string `json:"episodeID"` | ||
SeriesID string `json:"seriesID"` | ||
SeasonID string `json:"seasonID"` | ||
IsWatched bool `json:"isWatched"` // 視聴完了済み判定フラグ | ||
Position int64 `json:"position"` // どの時点まで番組を見たか | ||
Duration int64 `json:"duration"` // 視聴時間 | ||
LastViewingAt int64 `json:"lastViewingAt"` // 最後の視聴日時 | ||
} | ||
|
||
type ViewingHistories []*ViewingHistory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters