| deaultFlag | lowerSee | |
|---|---|---|
| 系统 | Y | Y |
| 通用 | N | Y |
| 私有 | "" | N |
{
"roleName": "string",
"orgId": 0,
"roleDescribe": "string",
"lowerSee": "string",
"defaultFlag": "string",
"resourcesList": [
{
"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/add' \
--header 'Content-Type: application/json' \
--data '{
"roleName": "string",
"orgId": 0,
"roleDescribe": "string",
"lowerSee": "string",
"defaultFlag": "string",
"resourcesList": [
{
"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"
}
]
}
]
}
]
}
]
}
]
}'{}