website refactor
This commit is contained in:
@@ -2,7 +2,8 @@ import { User } from '../../domain/entities/User';
|
||||
import { UserRepository } from '../../domain/repositories/UserRepository';
|
||||
import { Result } from '@core/shared/domain/Result';
|
||||
import type { ApplicationErrorCode } from '@core/shared/errors/ApplicationErrorCode';
|
||||
import type { Logger, UseCase } from '@core/shared/application';
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export type GetUserInput = {
|
||||
userId: string;
|
||||
@@ -21,7 +22,7 @@ export type GetUserApplicationError = ApplicationErrorCode<
|
||||
|
||||
export class GetUserUseCase implements UseCase<GetUserInput, GetUserResult, GetUserErrorCode> {
|
||||
constructor(
|
||||
private readonly userRepo: IUserRepository,
|
||||
private readonly userRepo: UserRepository,
|
||||
private readonly logger: Logger,
|
||||
) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user