{
"roleId": 0,
"roleName": "string",
"roleDescribe": "string",
"resourceIds": [
{
"resourceName": "string",
"hasPower": "string",
"productId": "string",
"parentId": "string",
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"resourceUrl": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"resourceUrl": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"pid": 0,
"resourceType": 0
}
],
"resourceUrl": "string"
}
]
}
]
}
]
}
]
}
]
}curl --location '/api/role/update' \
--header 'Content-Type: application/json' \
--data '{
"roleId": 0,
"roleName": "string",
"roleDescribe": "string",
"resourceIds": [
{
"resourceName": "string",
"hasPower": "string",
"productId": "string",
"parentId": "string",
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"resourceUrl": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"resourceUrl": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"pid": 0,
"resourceType": 0,
"children": [
{
"resourceId": 0,
"resourceCode": "string",
"resourceName": "string",
"pid": 0,
"resourceType": 0
}
],
"resourceUrl": "string"
}
]
}
]
}
]
}
]
}
]
}'{}