import { Injectable } from '@nestjs/common' ; import { PhototEntity } from '../entities/photo.entity' ; import { CreatePhotosDto } from '../form/create_photos.dto' ; import { CreateAlbumeDto } from '../form/create_album.dto' ; import { UpdateAlbumDto } from '../form/update_album.dto' ; import { AlbumEntity } from '../entities/album.entity' ; import { UpdatePhotoDto } from '../form/update_photo.dto' ; @ Injectable ( ) export class AlbumService { constructor ( ) { } createAlbum ( createAlbumeDto , userId ) { return AlbumEntity . createAlbum ( createAlbumeDto , userId ) ; } updateAlbum ( updateAlbumDto , userId ) { return AlbumEntity . updateAlbum ( updateAlbumDto , userId ) ; } daleteAlbum ( tagId , userId ) { return AlbumEntity . deleteAlbum ( tagId , userId ) ; } getList ( page , size , userId , secret ? , needRelations ? ) { return AlbumEntity . getList ( page , size , userId , secret , needRelations ) ; } createPhotos ( createPhotosDto , userId ) { return PhototEntity . createPhotos ( createPhotosDto , userId ) ; } getPhotoList ( page , size , albumName , userId ) { return PhototEntity . getList ( page , size , albumName , userId ) ; } updatePhoto ( updatePhotoDto , userId ) { return PhototEntity . updatePhoto ( updatePhotoDto , userId ) ; } deletePhotos ( photoIds , userId ) { return PhototEntity . deletePhotos ( photoIds , userId ) ; } }