Skip to content

Conversation

@DDINGJOO
Copy link
Owner

Summary

  • 내부망에서 사용자 역할을 변경할 수 있는 API 추가
  • 이메일로 사용자를 찾아 역할 변경 가능
  • 권한 검증 없이 단순 API 호출로 변경

Changes

  • RoleChangeRequest DTO 추가 (email, role)
  • AuthServicechangeRole 메서드 추가
  • RoleController 추가 (/api/internal/v1/auth/role)

API Usage

PUT /api/internal/v1/auth/role
Content-Type: application/json

{
  "email": "[email protected]",
  "role": "PLACE_OWNER"
}

Test plan

  • 존재하는 사용자 역할 변경 성공 확인
  • 존재하지 않는 사용자 시 404 반환 확인
  • 게이트웨이에서 내부망 접근 제한 설정 필요

Closes #83
Related: #81, #79

- RoleChangeRequest DTO 추가 (email, role)
- AuthService에 changeRole 메서드 추가
- RoleController 추가 (/api/internal/v1/auth/role)
- 이메일 암호화 조회 로직 적용 (하위 호환성 포함)

Closes #83
@DDINGJOO DDINGJOO merged commit 9893ebe into main Dec 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] 내부망 역할 변경 API 구현

2 participants