Skip to content

Commit

Permalink
Merge pull request #100 from CSID-DGU/back
Browse files Browse the repository at this point in the history
Test: Join
  • Loading branch information
proysm authored Dec 18, 2023
2 parents 530e10d + d8a3f8d commit e4664c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
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

0 comments on commit e4664c8

Please sign in to comment.