From 10c171a6a68c71b1ed2b598a28cb48989c2fb240 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Mon, 29 Mar 2021 16:41:03 +0900 Subject: [PATCH] Add authApplicationService.ts --- .../application/auth/authApplicationService.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 frontend/services/application/auth/authApplicationService.ts diff --git a/frontend/services/application/auth/authApplicationService.ts b/frontend/services/application/auth/authApplicationService.ts new file mode 100644 index 00000000..b3cbd642 --- /dev/null +++ b/frontend/services/application/auth/authApplicationService.ts @@ -0,0 +1,15 @@ +import { AuthRepository } from '~/domain/models/auth/authRepository' + +export class AuthApplicationService { + constructor( + private readonly repository: AuthRepository + ) {} + + public async login(username: string, password: string) { + await this.repository.login(username, password) + } + + public async logout() { + await this.repository.logout() + } +}