API 参考角色管理
添加角色成员
POST
/AddRoleMember为指定角色批量添加用户成员。
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://example.com/AddRoleMember" \ -H "Content-Type: application/json" \ -d '{ "roleId": 22, "roleMembers": [ { "username": "zhugeliang" }, { "username": "guanyu" } ] }'{ "ErrCode": 0, "Message": "添加成功", "data": { "orgId": 1, "orgName": "测试组织节点", "orgPNodeId": null, "orgLevelId": null, "sort": 0, "orgPath": "测试组织节点", "description": "" }}