Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test: Join #100

Merged
merged 3 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ public class UserController {
// 회원가입
@PostMapping("/user/join")
public AdminResponse insert(@RequestBody JoinDTO joinDTO){
System.out.println("구간1");
System.out.println(joinDTO.getPassword());
System.out.println(joinDTO.getNickname());
System.out.println(joinDTO.getIntroduce());
System.out.println(joinDTO.getGitid());
System.out.println(joinDTO.getEmail());

User saved_user = userService.join(joinDTO);

Long id = saved_user.getId();

CommonResponse commonResponse = new CommonResponse();
Expand Down
2 changes: 1 addition & 1 deletion Backend/src/main/java/com/example/demo/dto/JoinDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ public class JoinDTO {
private String password;
private String nickname;
private String introduce;
private String gitId;
private String gitid;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public UserService(@Qualifier("userRepository")UserRepository user_rp,
}

public User join(JoinDTO joinDTO){
System.out.println("구간2");
User user = new User();
user.setEmail(joinDTO.getEmail());
user.setIntroduce(joinDTO.getIntroduce());
Expand Down
Loading