{
"roleId": 0,
"roleName": "string",
"management": "string",
"managementName": "string",
"operEnable": "string",
"indexMap": "string",
"roleDesc": "string",
"groupIds": [
0
],
"userIds": [
0
],
"userNames": [
"string"
],
"roleOperation": [
{
"operId": "string",
"operName": "string",
"operBelong": "string",
"operParentId": "string",
"operOrder": 0,
"operType": "string",
"checked": true,
"isCollected": true,
"pinyin": "string",
"child": [
{}
],
"operParentName": "string"
}
],
"deviceOperation": {
"0": [
{
"operId": "string",
"operName": "string",
"operBelong": "string",
"operParentId": "string",
"operOrder": 0,
"operType": "string",
"checked": true,
"isCollected": true,
"pinyin": "string",
"child": [
{
"operId": "string",
"operName": "string",
"operBelong": "string",
"operParentId": "string",
"operOrder": 0,
"operType": "string",
"checked": true,
"isCollected": true,
"pinyin": "string",
"child": [
{}
],
"operParentName": "string"
}
],
"operParentName": "string"
}
]
},
"colList": [
{
"id": "string",
"name": "string",
"groupId": "string",
"groupName": "string",
"ip": "string",
"port": 0,
"managerId": "string",
"collectorDesc": "string",
"type": 0,
"status": 0,
"auth": 1,
"verInfo": "string",
"collectedTime": "string",
"projectPath": "string",
"disableOperation": true
}
],
"topoMapIds": [
"string"
],
"subOpearationMap": {
"0": [
"string"
]
}
}
curl --location --request POST '/api/sys-role/save' \
--header 'Content-Type: application/json' \
--data-raw '{
"roleId": 0,
"roleName": "string",
"management": "string",
"managementName": "string",
"operEnable": "string",
"indexMap": "string",
"roleDesc": "string",
"groupIds": [
0
],
"userIds": [
0
],
"userNames": [
"string"
],
"roleOperation": [
{
"operId": "string",
"operName": "string",
"operBelong": "string",
"operParentId": "string",
"operOrder": 0,
"operType": "string",
"checked": true,
"isCollected": true,
"pinyin": "string",
"child": [
{}
],
"operParentName": "string"
}
],
"deviceOperation": {
"0": [
{
"operId": "string",
"operName": "string",
"operBelong": "string",
"operParentId": "string",
"operOrder": 0,
"operType": "string",
"checked": true,
"isCollected": true,
"pinyin": "string",
"child": [
{
"operId": "string",
"operName": "string",
"operBelong": "string",
"operParentId": "string",
"operOrder": 0,
"operType": "string",
"checked": true,
"isCollected": true,
"pinyin": "string",
"child": [
{}
],
"operParentName": "string"
}
],
"operParentName": "string"
}
]
},
"colList": [
{
"id": "string",
"name": "string",
"groupId": "string",
"groupName": "string",
"ip": "string",
"port": 0,
"managerId": "string",
"collectorDesc": "string",
"type": 0,
"status": 0,
"auth": 1,
"verInfo": "string",
"collectedTime": "string",
"projectPath": "string",
"disableOperation": true
}
],
"topoMapIds": [
"string"
],
"subOpearationMap": {
"0": [
"string"
]
}
}'
{
"code": 0,
"data": null,
"message": "",
"count": 0,
"currentPage": 0,
"totalPages": 0
}