mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
feat: introduce new report "Top Albums"
This commit is contained in:
parent
09858076bf
commit
9896ea31ff
16 changed files with 246 additions and 9 deletions
10
src/reports/dto/get-top-albums-report.dto.ts
Normal file
10
src/reports/dto/get-top-albums-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 GetTopAlbumsReportDto {
|
||||
user: User;
|
||||
|
||||
@ValidateNested()
|
||||
time: ReportTimeDto;
|
||||
}
|
||||
8
src/reports/dto/top-albums-report.dto.ts
Normal file
8
src/reports/dto/top-albums-report.dto.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { Album } from "../../music-library/album.entity";
|
||||
|
||||
export class TopAlbumsReportDto {
|
||||
items: {
|
||||
album: Album;
|
||||
count: number;
|
||||
}[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue