author.service.ts 635 B

1234567891011121314151617181920212223242526
  1. import { Injectable } from '@nestjs/common';
  2. import { CreateAuthorDto } from './dto/create-author.dto';
  3. import { UpdateAuthorDto } from './dto/update-author.dto';
  4. @Injectable()
  5. export class AuthorService {
  6. create(createAuthorDto: CreateAuthorDto) {
  7. return 'This action adds a new author';
  8. }
  9. findAll() {
  10. return `This action returns all author`;
  11. }
  12. findOne(id: number) {
  13. return `This action returns a #${id} author`;
  14. }
  15. update(id: number, updateAuthorDto: UpdateAuthorDto) {
  16. return `This action updates a #${id} author`;
  17. }
  18. remove(id: number) {
  19. return `This action removes a #${id} author`;
  20. }
  21. }