token接口是按照springcloud oauth2的标准结构返回的。
成功
{
"tenant_id": "000000",
"user_id": "1123598821738675201",
"dept_id": "1123598813738675202,1123598813738675203",
"post_id": "1123598817738675201",
"role_id": "1123598816738675201",
"oauth_id": "",
"account": "admin",
"user_name": "admin",
"nick_name": "管理员",
"real_name": "管理员",
"role_name": "administrator",
"avatar": "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png",
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJibGFkZXguY24iLCJhdWQiOlsiYmxhZGV4Il0sInRva2VuX3R5cGUiOiJhY2Nlc3NfdG9rZW4iLCJjbGllbnRfaWQiOiJzYWJlcjMiLCJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX2lkIjoiMTEyMzU5ODgyMTczODY3NTIwMSIsImRlcHRfaWQiOiIxMTIzNTk4ODEzNzM4Njc1MjAyLDExMjM1OTg4MTM3Mzg2NzUyMDMiLCJwb3N0X2lkIjoiMTEyMzU5ODgxNzczODY3NTIwMSIsInJvbGVfaWQiOiIxMTIzNTk4ODE2NzM4Njc1MjAxIiwiYWNjb3VudCI6ImFkbWluIiwidXNlcl9uYW1lIjoiYWRtaW4iLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJyZWFsX25hbWUiOiLnrqHnkIblkZgiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwiZGV0YWlsIjp7InR5cGUiOiJ3ZWIifSwiZXhwIjoxNzMwNDM1Mjk2LCJuYmYiOjE3MzA0MzE2OTZ9.P-oQ9F3B25pXjZuWCFk0CUfX4YgWOwGvZn4YgQq14qfAAetFCfAzVkwpT7cosTEF4CKDstca1V9cP8JwDJ7M_w",
"refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJibGFkZXguY24iLCJhdWQiOlsiYmxhZGV4Il0sInRva2VuX3R5cGUiOiJyZWZyZXNoX3Rva2VuIiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJkZXB0X2lkIjoiMTEyMzU5ODgxMzczODY3NTIwMiwxMTIzNTk4ODEzNzM4Njc1MjAzIiwicm9sZV9pZCI6IjExMjM1OTg4MTY3Mzg2NzUyMDEiLCJleHAiOjE3MzEwMzY0OTYsIm5iZiI6MTczMDQzMTY5Nn0.7nQl8sOal8FcFr-vJTcqG8R-kTeSeB9dPrN81fqamVZyQ-PIMJRTr5d0dG2qpTYJt4d3n-L-P8Aj5x-UBd6YHg",
"token_type": "bearer",
"expires_in": 3600,
"detail": {
"type": "web"
},
"license": "powered by bladex"
}
错误
{
"success": false,
"error_code": 2004,
"error_description": "验证码不正确"
}
除此以外其他的接口是这样的返回
{
"code": 200,
"success": true,
"data": {
},
"msg": "操作成功"
}
扫一扫访问 Blade技术社区 移动端