userInfo.roles(数组,返回用户全部角色),一个用户可能存在多角色Authorization: Bearer ********************{
"uid": "20230001",
"password": "123456"
}curl --location 'http://localhost:8080/api/auth/login' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"uid": "20230001",
"password": "123456"
}'{
"code": 200,
"msg": "登录成功",
"data": {
"token": "e47c7a27-444b-4577-a4e4-aec7fba468bf",
"userInfo": {
"uid": "20230001",
"username": "admin",
"roles": [
"root",
"student"
]
}
}
}