{
"userId": 0,
"roleId": 0
}
curl --location --request POST 'https://api.itbug.shop/api/role/action/user-add' \
--header 'Authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjEiLCJleHAiOjE2OTU0MzcyMjR9.kbmW-3ddds9YwdKzKMieQOUQmjQdMZYE27N724f16Xk' \
--header 'Content-Type: application/json' \
--data-raw '{
"userId": 0,
"roleId": 0
}'
{
"state": 0,
"message": "string",
"data": {
"id": 0,
"loginNumber": "string",
"nickName": "string",
"email": "string",
"intro": "string",
"picture": "string",
"phone": "string",
"city": "string",
"job": "string",
"loginTime": "2019-08-24T14:15:22Z",
"type": 0,
"vip": 0,
"wallet": 0,
"openAiTokens": 0,
"openAiFlag": true,
"roles": [
{
"id": 0,
"name": "string",
"note": "string",
"createDate": "2019-08-24T14:15:22Z",
"status": 0,
"sort": 0,
"icon": "string",
"permissions": [
{
"id": 0,
"name": "string",
"note": "string",
"roles": [
{}
]
}
],
"users": [
{}
],
"authority": "string"
}
],
"status": 0,
"relationId": "string",
"enterprise": {
"id": 0,
"name": "string",
"profile": "string",
"phone": "string",
"qq": "string",
"wechat": "string",
"enable": true,
"绑定公司": "string"
},
"enabled": true,
"username": "string",
"showName": "string",
"authorities": [
{
"authority": "string"
}
],
"accountNonExpired": true,
"accountNonLocked": true,
"credentialsNonExpired": true
},
"type": "Toast",
"redirectUrl": "/error?message=token失效&reDirectTo=/orderList",
"success": true
}