测试数据权限编辑
POST
/test/dataAuthEdit
请求参数
Header 参数
Authorization
string
可选
示例值:
{{token}}
Body 参数application/json
id
integer | null
可选
示例
{
"id": 1,
"authObject": {
"users": [
{
"id": 1,
"name": "超级管理员用户"
}
],
"roles": [
{
"id": 1,
"name": "超级管理员"
}
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:8081/test/dataAuthEdit' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1,
"authObject": {
"users": [
{
"id": 1,
"name": "超级管理员用户"
}
],
"roles": [
{
"id": 1,
"name": "超级管理员"
}
]
}
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
message
string
必需
data
object
必需
id
integer
必需
authObject
object
必需
dataId
integer
必需
示例
{"code":200,"success":true,"message":"成功","data":{"id":1,"authObject":{"users":[{"id":1,"name":"超级管理员用户","auth":{"auth":"USER_1","description":"USER_超级管理员用户"}}],"roles":[{"id":1,"name":"超级管理员","auth":{"auth":"ROLE_1","description":"ROLE_超级管理员"}}],"depts":[],"empty":false},"dataId":1}}