v1

latestSwagger 2.0Apache 2.02026-07-174372196.9 KB
认证

用户登录

用户登录并获取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"
}