该接口支持登录用户。
请求接口
POST /api/encryption/authorize/login
请求参数
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| body | body | string | 是 | |
| » expires | body | integer | 否 | 有效期 |
| » verifyKey | body | string | 是 | key |
| » username | body | string | 是 | 用户名 |
| » password | body | string | 是 | 密码 |
| » verifyCode | body | string | 是 | code |
响应参数
以200 Response为例,响应参数如下:
| 名称 | 类型 | 必选 | 约束 | 说明 |
|---|---|---|---|---|
| » message | string | true | none | 返回信息 |
| » result | [object] | true | none | 返回结果 |
| » code | object | true | none | 状态码 |
| » status | integer | true | none | 响应状态码 |
| » timestamp | integer | true | none | 时间戳 |
响应状态码
| 状态码 | 状态码含义 | 说明 |
|---|---|---|
| 200 | OK | 成功 |
| 401 | Unauthorized | 登录状态已过期,token不能为空 |
| 500 | Internal Server Error | 服务器内部异常 |
Body示例
json
{
"verifyKey":"test",
"username":"test",
"password":"test",
"verifyCode":"1111"
}{
"verifyKey":"test",
"username":"test",
"password":"test",
"verifyCode":"1111"
}返回示例
以200 Response为例:
json
{
"message": "验证码错误 ",
"result": [],
"status": 400,
"code": "illegal_argument",
"timestamp": 1699953694844
}{
"message": "验证码错误 ",
"result": [],
"status": 400,
"code": "illegal_argument",
"timestamp": 1699953694844
}