- 项目说明
- user用户
- permission权限
- department机构管理
新增角色
Developing
POST
/perm/createRole
Last modified:2023-10-06 10:37:41
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
object {0}
Example
{
"name": "研发部经理",
"status": "1",
"parentRole": "4",
"grade": "1",
"description": "信息部技术权限"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:3001/api/perm/createRole' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "研发部经理",
"status": "1",
"parentRole":"4",
"grade": "1",
"description": "信息部技术权限"
}'
Responses
🟢200OK
application/json
Body
object {0}
Example
{}
Modified at 2023-10-06 10:37:41