router/api-router.go:164。controller.CreateUser,controller/user.go:999。user:write。同时需要满足接口的角色和业务要求。Authorization: Bearer ********************curl --location '/api/user/' \
--header 'X-Security-Proof;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"username": "string",
"password": "string",
"display_name": "string",
"role": 0,
"admin_permissions": {
"property1": {
"property1": true,
"property2": true
},
"property2": {
"property1": true,
"property2": true
}
},
"property1": "string",
"property2": "string"
}'{
"message": "string",
"success": true,
"property1": "string",
"property2": "string"
}