-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
222 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/main/java/com/sparta/oneandzerobest/auth/entity/LoginRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/main/java/com/sparta/oneandzerobest/auth/entity/LoginResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.sparta.oneandzerobest.auth.entity; | ||
|
||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@Builder | ||
public class LoginResponse { | ||
private String accessToken; | ||
private String refreshToken; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
src/main/java/com/sparta/oneandzerobest/auth/service/UserService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
package com.sparta.oneandzerobest.auth.service; | ||
|
||
import com.sparta.oneandzerobest.auth.dto.TokenResponseDto; | ||
import com.sparta.oneandzerobest.auth.entity.LoginRequest; | ||
import com.sparta.oneandzerobest.auth.entity.LoginResponse; | ||
import com.sparta.oneandzerobest.auth.entity.SignupRequest; | ||
|
||
public interface UserService { | ||
// 회원가입 | ||
void signup(SignupRequest signupRequest); | ||
String login(LoginRequest loginRequest); | ||
|
||
// 로그인 | ||
LoginResponse login(LoginRequest loginRequest); | ||
// 로그아웃 | ||
void logout(String username); | ||
// 탈퇴 | ||
void withdraw(String username, String password); | ||
// 리프레시 토큰 | ||
TokenResponseDto refresh(String refreshToken); | ||
} |
Oops, something went wrong.