Skip to content

Commit

Permalink
Feature/memo (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
kih00 authored Jan 28, 2025
1 parent 22f1069 commit 6186325
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AdminController(
@PostMapping("/admin/user")
fun createUser(@AuthUser user: User, @RequestBody request: CreateUserRequest): User {
adminService.isAdmin(user.id)
return userService.register(request.email, request.password)
return userService.register(request.email, request.password, request.nickname)
}

@Operation(summary = "유저 계정 삭제하기")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import java.util.UUID
sealed class AdminRequest {
data class CreateUserRequest(
val email: String,
val password: String
val password: String,
val nickname: String
) : AdminRequest()

data class UpdateUserRequest(
Expand Down

0 comments on commit 6186325

Please sign in to comment.