mirror of
https://github.com/apricote/Listory.git
synced 2026-02-09 03:07:02 +00:00
feat(server): save genres for artists and albums
This can later be used for reports
This commit is contained in:
parent
9b96d0fab4
commit
3c6f3289f1
12 changed files with 225 additions and 0 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { SpotifyLibraryDetails } from "../../sources/spotify/spotify-library-details.entity";
|
||||
import { Artist } from "../artist.entity";
|
||||
import { Genre } from "../genre.entity";
|
||||
|
||||
export class CreateAlbumDto {
|
||||
name: string;
|
||||
artists: Artist[];
|
||||
genres: Genre[];
|
||||
spotify?: SpotifyLibraryDetails;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
import { SpotifyLibraryDetails } from "../../sources/spotify/spotify-library-details.entity";
|
||||
import { Genre } from "../genre.entity";
|
||||
|
||||
export class CreateArtistDto {
|
||||
name: string;
|
||||
genres: Genre[];
|
||||
spotify?: SpotifyLibraryDetails;
|
||||
}
|
||||
|
|
|
|||
3
src/music-library/dto/create-genre.dto.ts
Normal file
3
src/music-library/dto/create-genre.dto.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export class CreateGenreDto {
|
||||
name: string;
|
||||
}
|
||||
3
src/music-library/dto/find-genre.dto.ts
Normal file
3
src/music-library/dto/find-genre.dto.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export class FindGenreDto {
|
||||
name: string;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue