# Function description

Login function

# Request

# Request example

POST /login HTTPS
Host: <host>
Content-Type: application/json

# Request Parameters

none

# Request Headers

No special request headers

# Request Body

The request body is a json string, for example:

{
  "loginName": 16639040000,
  "password": 123123123
}

#

Name Description Type Mandatory
loginName Account number (mobile phone number) string Yes
password password string Yes

# Response

# Response Header

No special response header

# Response Body

Successful Response Body :

{
  "code": 0,
  "message": "",
  "data": {
    "token": "eyJhbGciOiJI**************OiJKV1RUbb3ODQUmnq5r0FqdSJFA",
    "role": 1,
    "userName": "test",
    "userId": 1,
    "pages": [
      100,
      200,
      201,
      202,
      203,
      204,
      205
    ]
  }
}

The response body of the failed request is

{
  "code": <errorCode>,
  "message": <errorMessage>,
  "data": null
}