feat: UserApi.php Swagger 점검 및 개선 (Phase 3-4)
- UserUpdateRequest.php 생성 (검증 로직 분리) - PasswordChangeRequest.php 생성 (비밀번호 변경 검증) - SwitchTenantRequest.php 생성 (테넌트 전환 검증) - UserApi.php에 Request 스키마 추가 - UserController.php FormRequest 적용 및 DI 패턴 적용 - MemberService static 호출 → DI 인스턴스 호출 - lang/ko/message.php user 메시지 키 추가 - SAM API Development Rules 준수 완료
This commit is contained in:
@@ -96,6 +96,36 @@
|
||||
* @OA\Property(property="user", ref="#/components/schemas/Member"),
|
||||
* @OA\Property(property="tenant", ref="#/components/schemas/TenantBrief")
|
||||
* )
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="UserUpdateRequest",
|
||||
* type="object",
|
||||
* description="사용자 정보 수정 요청",
|
||||
*
|
||||
* @OA\Property(property="name", type="string", maxLength=100, example="홍길동"),
|
||||
* @OA\Property(property="phone", type="string", nullable=true, maxLength=20, example="010-1234-5678"),
|
||||
* @OA\Property(property="email", type="string", maxLength=100, example="user@example.com")
|
||||
* )
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="PasswordChangeRequest",
|
||||
* type="object",
|
||||
* required={"current_password","new_password","new_password_confirmation"},
|
||||
* description="비밀번호 변경 요청",
|
||||
*
|
||||
* @OA\Property(property="current_password", type="string", format="password", example="current123"),
|
||||
* @OA\Property(property="new_password", type="string", format="password", minLength=8, example="newpass123"),
|
||||
* @OA\Property(property="new_password_confirmation", type="string", format="password", example="newpass123")
|
||||
* )
|
||||
*
|
||||
* @OA\Schema(
|
||||
* schema="SwitchTenantRequest",
|
||||
* type="object",
|
||||
* required={"tenant_id"},
|
||||
* description="테넌트 전환 요청",
|
||||
*
|
||||
* @OA\Property(property="tenant_id", type="integer", example=2)
|
||||
* )
|
||||
*/
|
||||
class UserApi
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user