20 lines
567 B
TypeScript
20 lines
567 B
TypeScript
|
import {Feature, AppServices} from "@app/core/Feature";
|
||
|
import {UserEvents} from "./UsersEvents";
|
||
|
import {UsersRepository} from "./UsersRepository";
|
||
|
import {UsersUseCases} from "./UsersUseCases";
|
||
|
|
||
|
export class UserFeature extends Feature {
|
||
|
|
||
|
name = "User"
|
||
|
repository: UsersRepository
|
||
|
useCases: UsersUseCases
|
||
|
events: UserEvents
|
||
|
|
||
|
constructor(services: AppServices) {
|
||
|
super(services);
|
||
|
this.repository = new UsersRepository(services.db)
|
||
|
this.events = new UserEvents()
|
||
|
this.useCases = new UsersUseCases({repository: this.repository, events: this.events})
|
||
|
}
|
||
|
}
|