Skip to content

Feat/#37: 유저 프로필 수정 기능#38

Merged
EveryPine merged 3 commits intomainfrom
feat/#37
May 8, 2025
Merged

Feat/#37: 유저 프로필 수정 기능#38
EveryPine merged 3 commits intomainfrom
feat/#37

Conversation

@EveryPine
Copy link
Copy Markdown
Collaborator

@EveryPine EveryPine commented Apr 12, 2025

Changes

1. 유저 프로필 수정 api 추가

[PATCH] /auth/profile

유저 프로필 정보를 수정합니다. 다른 유저의 프로필은 수정할 수 없습니다.

Headers

헤더명 필수 설명
Content-Type application/json
Authorization Bearer {JWT_TOKEN}

Request Body

필드명 타입 필수 설명
name String 수정할 유저 이름
rank String 직급 유형 Enum

Request Body - Example

{
    "name": "John Doe",
    "rank": "Senior"
}

Response Body

필드명 타입 설명
name String 수정된 유저 이름
role String 유저 권한 Enum
rank String 유저 직급 Enum
createdAt String (ISO-8601) 유저 프로필 생성 시각
updatedAt String (ISO-8601) 유저 프로필 최종 수정 시각

Response Body - Example

200 - OK

{
    "code": 200,
    "message": "프로필 수정에 성공했습니다.",
    "result": {
        "name": "John Doe",
        "role": "Member",
        "rank": "Senior",
        "createdAt": "2025-04-09T13:22:45.000Z",
        "updatedAt": "2025-04-12T13:22:45.000Z"
    }
}

400 - Bad Request

{
    "code": 400,
    "message": "'fs'은(는) 지원하지 않는 값입니다.",
    "details": {
        "errors": [
            {
                "field": "rank",
                "reason": "가능한 값: [Intern, Junior, Senior, Manager, Director, VP, CEO]"
            }
        ]
    }
}

Enum - role

설명
Admin 관리자 권한
Member 멤버 권한

Enum - rank

설명
Intern 인턴 직급
Junior 사원 직급
Senior 대리 직급
Manager 부장 직급
Director 부서장 직급
VP 부사장 직급
CEO 최고경영자 직급

@EveryPine EveryPine self-assigned this Apr 13, 2025
@EveryPine EveryPine added the enhancement New feature or request label Apr 13, 2025
@EveryPine EveryPine merged commit f9d17a2 into main May 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant