获取用户申请区域权限列表
开发中
POST
/api/v1/system/data/area/user/apply/index
请求参数
Header 参数
iThings-token
string
可选
默认值:
{{iThings-token}}
iThings-project-id
string
可选
默认值:
1786838173980422144
iThings-app-code
string
可选
默认值:
{{iThings-app-code}}
iThings-user-role
string
可选
默认值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
page
object
可选
page
integer
页码
size
integer
每页大小
authTypes
array[integer]
权限类型(不填获取全部)
withAreaInfo
boolean
可选
withUserInfo
boolean
可选
示例
{
"withAreaInfo": true,
"withUserInfo": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/data/area/user/apply/index' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-project-id: 1786838173980422144' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-user-role: 1' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"withAreaInfo": true,
"withUserInfo": true
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
list
array [object {7}]
必需
total
integer
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"list": [
{
"id": 10,
"userID": "1740358057038188544",
"areaID": "1786838976326701056",
"authType": 1,
"createdTime": 1705674097,
"areaInfo": {
"createdTime": "1705671889",
"projectID": "1786838173980422144",
"areaID": "1786838976326701056",
"parentAreaID": "1",
"areaName": "县类族又部",
"position": {
"longitude": 131.3719,
"latitude": 25.12175
},
"desc": "cupidatat",
"children": null
},
"userInfo": {
"userID": "1740358057038188544",
"userName": "administrator",
"email": "",
"phone": "",
"lastIP": "",
"regIP": "",
"nickName": "iThings管理员",
"city": "",
"country": "",
"province": "",
"language": "",
"headImg": "",
"isUpdateHeadImg": 0,
"createdTime": "1703849490",
"role": 1,
"sex": 3,
"isAllData": 1,
"roles": null
}
}
],
"total": 1
}
}
🟢200成功返回

扫码加入 iThings微信交流群

