Add additional stats to the Stats page (#3812)

* Add o_counter, play_duration, play_count, unique_play_count stats
This commit is contained in:
hontheinternet
2023-07-11 13:32:42 +09:00
committed by GitHub
parent 4f0e0e1d99
commit ff22577ce0
9 changed files with 209 additions and 21 deletions

View File

@@ -168,12 +168,16 @@ type SceneReader interface {
CountByPerformerID(ctx context.Context, performerID int) (int, error)
OCountByPerformerID(ctx context.Context, performerID int) (int, error)
OCount(ctx context.Context) (int, error)
// FindByStudioID(studioID int) ([]*Scene, error)
FindByMovieID(ctx context.Context, movieID int) ([]*Scene, error)
CountByMovieID(ctx context.Context, movieID int) (int, error)
Count(ctx context.Context) (int, error)
PlayCount(ctx context.Context) (int, error)
UniqueScenePlayCount(ctx context.Context) (int, error)
Size(ctx context.Context) (float64, error)
Duration(ctx context.Context) (float64, error)
PlayDuration(ctx context.Context) (float64, error)
// SizeCount() (string, error)
CountByStudioID(ctx context.Context, studioID int) (int, error)
CountByTagID(ctx context.Context, tagID int) (int, error)