-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/Team-HMH/HMH-Server into…
… fix/#91-delete-user-relationships
- Loading branch information
Showing
10 changed files
with
83 additions
and
18 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
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
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
52 changes: 52 additions & 0 deletions
52
src/main/java/sopt/org/HMH/domain/user/controller/UserApi.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,52 @@ | ||
package sopt.org.HMH.domain.user.controller; | ||
|
||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.security.SecurityRequirement; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestHeader; | ||
import sopt.org.HMH.domain.user.dto.request.SocialPlatformRequest; | ||
import sopt.org.HMH.domain.user.dto.request.SocialSignUpRequest; | ||
import sopt.org.HMH.global.auth.UserId; | ||
import sopt.org.HMH.global.auth.jwt.JwtConstants; | ||
import sopt.org.HMH.global.common.response.BaseResponse; | ||
|
||
@Tag(name = "회원 관련 API") | ||
@SecurityRequirement(name = JwtConstants.AUTHORIZATION) | ||
public interface UserApi { | ||
|
||
@Operation( | ||
summary = "소셜 로그인") | ||
ResponseEntity<BaseResponse<?>> orderLogin( | ||
@Parameter(hidden = true) @RequestHeader(JwtConstants.AUTHORIZATION) final String socialAccessToken, | ||
@RequestBody final SocialPlatformRequest request | ||
); | ||
|
||
@Operation( | ||
summary = "회원 가입") | ||
ResponseEntity<BaseResponse<?>> orderSignup( | ||
@Parameter(hidden = true) @RequestHeader(JwtConstants.AUTHORIZATION) final String socialAccessToken, | ||
@RequestHeader("OS") final String os, | ||
@RequestBody final SocialSignUpRequest request | ||
); | ||
|
||
@Operation( | ||
summary = "토큰 재발급") | ||
ResponseEntity<BaseResponse<?>> orderReissue( | ||
@Parameter(hidden = true) @RequestHeader(JwtConstants.AUTHORIZATION) final String refreshToken | ||
); | ||
|
||
@Operation( | ||
summary = "로그아웃") | ||
ResponseEntity<BaseResponse<?>> orderLogout(@UserId @Parameter(hidden = true) final Long userId); | ||
|
||
@Operation( | ||
summary = "유저 정보 불러오기") | ||
ResponseEntity<BaseResponse<?>> orderGetUserInfo(@UserId @Parameter(hidden = true) final Long userId); | ||
|
||
@Operation( | ||
summary = "회원 탈퇴") | ||
ResponseEntity<BaseResponse<?>> orderWithdraw(@UserId @Parameter(hidden = true) final Long userId); | ||
} |
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
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