mirror of
https://github.com/apricote/Listory.git
synced 2026-02-07 02:07:03 +00:00
feat: add top tracks report
This commit is contained in:
parent
60dc25f15e
commit
51fd78f6d9
11 changed files with 230 additions and 0 deletions
10
src/reports/dto/get-top-tracks-report.dto.ts
Normal file
10
src/reports/dto/get-top-tracks-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 GetTopTracksReportDto {
|
||||
user: User;
|
||||
|
||||
@ValidateNested()
|
||||
time: ReportTimeDto;
|
||||
}
|
||||
8
src/reports/dto/top-tracks-report.dto.ts
Normal file
8
src/reports/dto/top-tracks-report.dto.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { Track } from "../../music-library/track.entity";
|
||||
|
||||
export class TopTracksReportDto {
|
||||
items: {
|
||||
track: Track;
|
||||
count: number;
|
||||
}[];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue