From 7a7999b52a5172d72ac21342948be847fd7f4eae Mon Sep 17 00:00:00 2001 From: KleinChiu <65886108+KleinChiu@users.noreply.github.com> Date: Tue, 21 Jun 2022 19:31:20 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E8=AA=8D=E8=A8=BC=E7=94=A8?= =?UTF-8?q?=E3=81=AEAPI=E3=82=A4=E3=83=B3=E3=82=BF=E3=83=95=E3=82=A7?= =?UTF-8?q?=E3=83=BC=E3=82=B9=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/Auth.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 application/Auth.ts diff --git a/application/Auth.ts b/application/Auth.ts new file mode 100644 index 0000000..8cfaf2c --- /dev/null +++ b/application/Auth.ts @@ -0,0 +1,19 @@ +export interface SignInRequest { + email: string; + password: string; +} + +export interface SignInResponse { + succeed: boolean; + error?: string; +} + +export interface SignUpRequest { + email: string; + password: string; +} + +export interface SignUpResponse { + succeed: boolean; + error?: string; +} From 1206977db163ef1ae4cd0716345d5e579ea69aa9 Mon Sep 17 00:00:00 2001 From: KleinChiu <65886108+KleinChiu@users.noreply.github.com> Date: Tue, 21 Jun 2022 20:03:38 +0000 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E3=83=A6=E3=83=BC=E3=82=B6?= =?UTF-8?q?=E3=83=BC=E3=82=92=E3=83=97=E3=83=AC=E3=82=A4=E3=83=A4=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=A2=E3=83=83=E3=83=97=E3=82=B0=E3=83=AC=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=99=E3=82=8BIF=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infrastructure/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infrastructure/index.ts b/infrastructure/index.ts index cb3240f..00a1869 100644 --- a/infrastructure/index.ts +++ b/infrastructure/index.ts @@ -17,4 +17,7 @@ export interface IAccountRepository { setLastLoginAttempt(timestamp: number): void; setLastLogin(timestamp: number): void; registerNewUser(user: User): void; + upgradeUserToPlayer(user: User, player: Player): Promise; + unregisterUser(id: Identifier): Promise; + unregisterPlayer(id: Identifier): Promise; }