~~~[api]
post:/login/admin
*string:account=admin#账号
*password=admin#密码
<<<
success
{
"code": 200,
"info": {
"ID": 2,
"CreatedAt": "2018-11-01T10:53:53+08:00",
"UpdatedAt": "2019-03-20T17:54:19+08:00",
"DeletedAt": null,
"Account": "cuijun",
"Status": 1,
"AccessToken": "dcddvdvdgg",
"CallbackUrl": "golang.org/x/text/transform",
"Amount": 0,
"Token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiY3VpanVuIiwiZXhwIjoxNTUzMTE5OTkzLCJpYXQiOjE1NTMwODM5OTMsImlkIjoyLCJpc3MiOiJwYXljZW50ZXJfdXNlciJ9.is64E7jZQBmmssJn-s04cemZV9buc8HGWi_2eptM5as"
},
"msg": "success"
}
<<<
error
{
"code": 400,
"info": "帐号或密码错误",
"msg": "error"
}
~~~
~~~
是否需要jwt验证:否
Token为jwt 验证的加密字符串,必须放在header头中进行请求
Token 过期时间 10小时 可以通过生成新Token接口进行重新生成
header头信息如下
~~~
{
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoiYWRtaW4iLCJleHAiOjE1NTMxMjAxMjgsImlhdCI6MTU1MzA4NDEyOCwiaWQiOjEsImlzcyI6InBheWNlbnRlcl9hZG1pbiJ9.wdpQn1AUjyEDriUtErnRjKLQikiHed0BhwbP70mdFeY"
}
~~~
~~~