mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat: top genres report
This commit is contained in:
parent
62119d44b0
commit
a0c28e2324
21 changed files with 317 additions and 104 deletions
10
src/reports/dto/get-top-genres-report.dto.ts
Normal file
10
src/reports/dto/get-top-genres-report.dto.ts
Normal 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;
|
||||
}
|
||||
10
src/reports/dto/top-genres-report.dto.ts
Normal file
10
src/reports/dto/top-genres-report.dto.ts
Normal 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;
|
||||
}[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue