-
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.
- Loading branch information
Showing
8 changed files
with
92 additions
and
17 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
64 changes: 64 additions & 0 deletions
64
src/main/java/com/example/neoul/controller/UserController.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,64 @@ | ||
package com.example.neoul.controller; | ||
|
||
|
||
import com.example.neoul.service.UserService; | ||
import io.swagger.annotations.ApiOperation; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.io.UnsupportedEncodingException; | ||
|
||
|
||
@RequiredArgsConstructor | ||
@RestController | ||
@RequestMapping("/user") | ||
public class UserController { | ||
|
||
private final UserService userService; | ||
|
||
|
||
// @ApiOperation(value = "현재 로그인 유저", notes = "현재 로그인 유저") | ||
// @GetMapping("/now") | ||
// public BaseResponse<User> now(){ | ||
// | ||
// if(userService.findNowLoginUser() != null){ | ||
// return BaseResponse.ok(SUCCESS, userService.findNowLoginUser()); | ||
// } | ||
// | ||
// return BaseResponse.ok(USER_NEED_TO_LOGIN); | ||
// } | ||
|
||
|
||
// @ApiOperation(value = "회원가입", notes = "회원가입") | ||
// @PostMapping("/signup") | ||
// public BaseResponse<User> signup(@RequestBody UserReq.SignupUserReq signupUserReq) { | ||
// | ||
// if(!signupUserReq.isEmailVerified()) | ||
// return BaseResponse.ok(USER_EMAIL_VERIFIED_FALSE); | ||
// | ||
// return BaseResponse.ok(SUCCESS, userService.signup(signupUserReq)); | ||
// } | ||
// | ||
// | ||
// | ||
// | ||
// @ApiOperation(value = "로그인", notes = "로그인") | ||
// @PostMapping("/login") | ||
// public BaseResponse<TokenRes> signup(@RequestBody UserReq.LoginUserReq loginUserReq) { | ||
// | ||
// return BaseResponse.ok(SUCCESS, userService.login(loginUserReq)); | ||
// } | ||
// | ||
// | ||
// @ApiOperation(value = "회원 탈퇴", notes = "회원 탈퇴") | ||
// @GetMapping("/withdrawal") | ||
// public BaseResponse<String> withdrawal() { | ||
// if(userService.withdrawal() != null) | ||
// return BaseResponse.ok(SUCCESS, userService.withdrawal()); | ||
// | ||
// return BaseResponse.ok(USER_FAILED_TO_WITHDRAWAL); | ||
// } | ||
|
||
|
||
|
||
} |
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