角色管理
编辑角色
修改指定角色的名称、所属分类及描述信息。
Authorization
bearer AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://camp.app.hzgcloud.cn/rbac/ServerCommand/EditRole" \ -H "Content-Type: application/json" \ -d '{ "roleId": 22, "roleName": "测试角色 02", "roleTypeId": null, "description": "按时打算打" }'{
"ErrCode": 0,
"Message": "success",
"data": {
"roleId": 22,
"roleTypeId": null,
"uniqueKey": "22~1",
"pUniqueKey": "",
"name": "测试角色 02",
"description": "按时打算打"
}
}