feat: top genres report

This commit is contained in:
Julian Tölle 2021-10-26 20:09:52 +02:00
parent 62119d44b0
commit a0c28e2324
21 changed files with 317 additions and 104 deletions

View file

@ -0,0 +1,10 @@
import { ValidateNested } from "class-validator";
import { User } from "../../users/user.entity";
import { ReportTimeDto } from "./report-time.dto";
export class GetTopGenresReportDto {
user: User;
@ValidateNested()
time: ReportTimeDto;
}

View file

@ -0,0 +1,10 @@
import { Genre } from "../../music-library/genre.entity";
import { TopArtistsReportDto } from "./top-artists-report.dto";
export class TopGenresReportDto {
items: {
genre: Genre;
artists: TopArtistsReportDto["items"];
count: number;
}[];
}