14 lines
359 B
TypeScript
14 lines
359 B
TypeScript
import { TheaterEntity } from '../entities/theater.entity'
|
|
|
|
export abstract class TheaterRepositoryPort {
|
|
public abstract findAll(): Promise<TheaterEntity[]>
|
|
|
|
public abstract findById(
|
|
id: TheaterEntity['id']
|
|
): Promise<TheaterEntity | null>
|
|
|
|
public abstract create(
|
|
data: Pick<TheaterEntity, 'name' | 'address'>
|
|
): Promise<TheaterEntity>
|
|
}
|