Reupload
This commit is contained in:
commit
61cbd57af1
168 changed files with 31208 additions and 0 deletions
19
server/src/core/features/users/index.ts
Normal file
19
server/src/core/features/users/index.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
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})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue