Skip to content

Request Response 규칙

Jongmin Chung edited this page Mar 29, 2023 · 1 revision

Exception:

{
  "msg": "에러에 대한 메시지"
}

정상 응답 [Response] 를 담음 -HttpStatus

{
    "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJBY2Nlc3NUb2tlbiIsImlhdCI6MTY3NTYwMzU3OSwiZXhwIjoxNjc1NjA3MTc5LCJpZCI6MSwicm9sZSI6Ik5PUk1BTCJ9.nbe8qc36n4fsfvTEm3BflxF7kM7iwjYiGDeZN4MPFg4",
    "regiseterCompleted": false,
    "loginMemberResoponse": {
        "id": 1,
        "hiworksId": "normal01",
        "name": "normal01"
    }
}

Controller

DomainCreateRequest -> Controller -> DomainCreateRequest -> Service
Controller -> DomainCreateResponse <- Service

DomainUpdateRequest

Error

ErrorCode
- HttpStatus
- message (인자 없이)
Clone this wiki locally