Skip to content

Commit

Permalink
Merge pull request #8 from hal-tokyo-cello/feat/#7
Browse files Browse the repository at this point in the history
アカウント関連のIFを設計
  • Loading branch information
reone19 authored Jun 23, 2022
2 parents 190cff4 + ae17f6f commit ec1820d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions application/Auth.ts
Original file line number Diff line number Diff line change
@@ -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;
}
3 changes: 3 additions & 0 deletions infrastructure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ export interface IAccountRepository {
setLastLoginAttempt(timestamp: number): Promise<void>;
setLastLogin(timestamp: number): Promise<void>;
registerNewUser(user: User): Promise<void>;
upgradeUserToPlayer(user: User, player: Player): Promise<void>;
unregisterUser(id: Identifier): Promise<void>;
unregisterPlayer(id: Identifier): Promise<void>;
}

0 comments on commit ec1820d

Please sign in to comment.