查询角色
POST
/myauth/web/getRole
请求参数
Header 参数
token
string
必需
示例值:
123
Body 参数application/json
id
integer
角色ID
示例
{
"id": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/myauth/web/getRole' \
--header 'token: 123' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 1
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
id
integer
必需
name
string
必需
fromSoftId
integer
所属软件ID
meunIds
string
拥有菜单权限列表
discount
integer
折扣
fromSoftName
string
所属软件名称
meunList
array[string]
拥有菜单权限列表
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "查询成功",
"sign": "",
"result": {
"id": 2,
"name": "代理商",
"fromSoftId": 1,
"meunIds": "[\"da3af6df-cd00-4746-b788-bd2dfeab716f\",\"922666ba-1ed1-4b6b-9043-30aeead1eebe\",\"23a8778f-9424-449a-a68e-54b12e4c30f3\",\"cd256048-3f8e-4fb7-ada3-55d538ce7611\"]",
"discount": 90,
"fromSoftName": "MyQQ",
"meunList": [
"da3af6df-cd00-4746-b788-bd2dfeab716f",
"922666ba-1ed1-4b6b-9043-30aeead1eebe",
"23a8778f-9424-449a-a68e-54b12e4c30f3",
"cd256048-3f8e-4fb7-ada3-55d538ce7611"
]
},
"timestamp": 1647064704779
}
🔴500错误
修改于 2022-03-13 06:43:53