Skip to content

Commit

Permalink
feat: create user API 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
phonil committed Dec 17, 2023
1 parent 4ce8fd7 commit 5f8ce3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public ResponseEntity<?> createUser(CreateUserReq createUserReq) {

CreateUserRes createUserRes = CreateUserRes.builder()
.id(user.getId())
.limitUserCount(waitingRoom.getLimit_user_num())
.currentUserCount(waitingRoom.getCurrent_user_num())
.message("유저가 생성되었습니다. (생성된 유저 ID)")
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ public class CreateUserRes {

private Long id;

private int limitUserCount;

private int currentUserCount;

private String message;

@Builder
public CreateUserRes(Long id, String message) {
public CreateUserRes(Long id, int limitUserCount, int currentUserCount, String message) {
this.id = id;
this.limitUserCount = limitUserCount;
this.currentUserCount = currentUserCount;
this.message = message;
}
}

0 comments on commit 5f8ce3e

Please sign in to comment.