Authorization: Bearer ********************{
"parentId": 0,
"ancestors": "0,1,2",
"deptName": "技术部",
"sort": 1,
"leader": "张三",
"phone": "13800138000",
"email": "tech@company.com",
"status": 0,
"remark": "技术研发部门"
}curl --location --request POST '/dept' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"parentId": 0,
"ancestors": "0,1,2",
"deptName": "技术部",
"sort": 1,
"leader": "张三",
"phone": "13800138000",
"email": "tech@company.com",
"status": 0,
"remark": "技术研发部门"
}'