认证

用户登录

用户登录并获取JWT令牌

post/auth/login

Request body

passwordstring required
usernamestring required

Response

登录成功

codeinteger
messagestring
requestIdstring
successboolean
timestampstring

Example response

{
  "code": 200,
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIs..."
  },
  "message": "操作成功",
  "requestId": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "timestamp": "2023-01-01T12:00:00Z"
}

Changes

No recorded changes to this endpoint across all 15 revisions of this API.