feat: 내 정보 조회/수정 API 구현 (#62) #63

Merged
seonkyu.kim merged 1 commits from feature/#62-profile-api into develop 2026-02-10 01:59:38 +00:00
Owner

📋 작업 요약

  • 인증된 관리자가 자신의 프로필 정보를 조회/수정할 수 있는 API 구현
  • 기존 AccountController(Super 전용)와 분리하여 별도 ProfileController 생성

Closes #62

🛠️ 작업 내용 (Changes)

  • SPMS.Application/DTOs/Account/ProfileResponseDto.cs — 프로필 응답 DTO (admin_code, email, name, phone, role, created_at)
  • SPMS.Application/DTOs/Account/UpdateProfileRequestDto.cs — 프로필 수정 요청 DTO (name?, phone?)
  • SPMS.Application/Interfaces/IAuthService.cs — GetProfileAsync, UpdateProfileAsync 추가
  • SPMS.Application/Services/AuthService.cs — 프로필 조회/수정 로직 구현
  • SPMS.API/Controllers/ProfileController.cs — Route: v1/in/account/profile, [Authorize]

📢 리뷰어 참고 사항 (To Reviewers)

  • AccountController는 [Authorize(Roles = "Super")] 클래스 레벨 인증이므로, 모든 인증된 사용자가 접근 가능한 프로필 API는 별도 ProfileController로 분리
  • 수정 시 변경 사항이 없으면 NoChange(105) 에러 반환

체크리스트 (Self Checklist)

  • 빌드(Build)가 성공적으로 수행되었는가?
  • 모든 단위 테스트(Unit Test)를 통과하였는가?
  • 불필요한 로그나 주석을 제거하였는가?
  • 컨벤션(Clean Architecture, Naming)을 준수하였는가?
  • 기밀 정보(비밀번호, 키 등)가 하드코딩 되어있지 않은가?

📸 스크린샷 / 테스트 로그 (Screenshots/Logs)

빌드했습니다.
    경고 0개
    오류 0개
## 📋 작업 요약 - 인증된 관리자가 자신의 프로필 정보를 조회/수정할 수 있는 API 구현 - 기존 AccountController(Super 전용)와 분리하여 별도 ProfileController 생성 ## 🔗 관련 이슈 (Related Issues) Closes #62 ## 🛠️ 작업 내용 (Changes) - [x] `SPMS.Application/DTOs/Account/ProfileResponseDto.cs` — 프로필 응답 DTO (admin_code, email, name, phone, role, created_at) - [x] `SPMS.Application/DTOs/Account/UpdateProfileRequestDto.cs` — 프로필 수정 요청 DTO (name?, phone?) - [x] `SPMS.Application/Interfaces/IAuthService.cs` — GetProfileAsync, UpdateProfileAsync 추가 - [x] `SPMS.Application/Services/AuthService.cs` — 프로필 조회/수정 로직 구현 - [x] `SPMS.API/Controllers/ProfileController.cs` — Route: v1/in/account/profile, [Authorize] ## 📢 리뷰어 참고 사항 (To Reviewers) - AccountController는 `[Authorize(Roles = "Super")]` 클래스 레벨 인증이므로, 모든 인증된 사용자가 접근 가능한 프로필 API는 별도 ProfileController로 분리 - 수정 시 변경 사항이 없으면 NoChange(105) 에러 반환 ## ✅ 체크리스트 (Self Checklist) - [x] 빌드(Build)가 성공적으로 수행되었는가? - [x] 모든 단위 테스트(Unit Test)를 통과하였는가? - [x] 불필요한 로그나 주석을 제거하였는가? - [x] 컨벤션(Clean Architecture, Naming)을 준수하였는가? - [x] 기밀 정보(비밀번호, 키 등)가 하드코딩 되어있지 않은가? ## 📸 스크린샷 / 테스트 로그 (Screenshots/Logs) ``` 빌드했습니다. 경고 0개 오류 0개 ```
seonkyu.kim added 1 commit 2026-02-10 01:49:28 +00:00
- ProfileResponseDto, UpdateProfileRequestDto 생성
- IAuthService에 GetProfileAsync, UpdateProfileAsync 추가
- AuthService에 프로필 조회/수정 로직 구현
- ProfileController 생성 (v1/in/account/profile)
seonkyu.kim self-assigned this 2026-02-10 01:49:38 +00:00
seonkyu.kim added this to the Phase 2-1: 인증 & 계정 & 서비스 API milestone 2026-02-10 01:49:40 +00:00
seonkyu.kim added the
Priority
Medium
Status
In Progress
Type
Feature
labels 2026-02-10 01:49:50 +00:00
seonkyu.kim requested review from Owners 2026-02-10 01:50:02 +00:00
seonkyu.kim merged commit 5d22fed32a into develop 2026-02-10 01:59:38 +00:00
seonkyu.kim deleted branch feature/#62-profile-api 2026-02-10 01:59:56 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-10 02:00:31 +00:00
Sign in to join this conversation.
No description provided.