Skip to content

Commit

Permalink
feat: add book repository
Browse files Browse the repository at this point in the history
  • Loading branch information
joseandrestrujillo committed Nov 22, 2023
1 parent aab517e commit c02982e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/book/domain/services/book.repository.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import User from '@/core/user/domain/model/user.entity'
import Book from '@/core/book/domain/model/book.entity'

export default interface Users {
export default interface Books {
// Finds a user by email
findByEmail(email: string): Promise<User | null>
findAll(): Promise<Book[] | null>

// Saves a user
save(user: User): Promise<void>
save(user: Book): Promise<void>
}

0 comments on commit c02982e

Please sign in to comment.