- 项目说明
- user用户
- permission权限
- department机构管理
addDept新增机构
Developing
POST
/dept/addDept
Last modified:2023-09-22 09:49:21
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
{
"code": "02",
"name": "市场部",
"status": 1,
"Pid": "00",
"managerUid": "95989d71-d927-4a06-999c-7b3f10f39ed1"
}
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/dept/addDept' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "02",
"name": "市场部",
"status": 1,
"Pid": "00",
"managerUid": "95989d71-d927-4a06-999c-7b3f10f39ed1"
}'
Responses
🟠401Unauthorized
application/json
Body
success
boolean
required
message
string
required
Example
{"success":false,"message":"token为当前必传项"}
Modified at 2023-09-22 09:49:21