GET api/UserRolesList?u={u}&t={t}&d={d}
获取用户角色列表
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| u |
用户ID |
integer |
Required |
| t |
[用户ID]|[用户密码,加密]|[requestTime]|[设备标识],加密 |
string |
Required |
| d |
PageNumber=[PageNumber,int],PageSize=[PageSize,int],Guid=[用户ID,long] |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
获取用户角色列表
DataResultListOfUsersInRole| Name | Description | Type | Additional information |
|---|---|---|---|
| DataList | Collection of UsersInRole |
None. |
|
| PageNum | integer |
None. |
|
| PageSize | integer |
None. |
|
| PageCount | integer |
None. |
|
| PreviousIndex | integer |
None. |
|
| NextIndex | integer |
None. |
|
| RecordCount | integer |
None. |
|
| Error | boolean |
None. |
|
| ErrorInfo | Collection of string |
None. |
|
| ExInfo | Exception |
None. |
Response Formats
application/json, text/json
Sample:
{
"_pageSize": 2,
"_recordCount": 3,
"_pageNum": 1,
"_error": true,
"_errorInfo": [
"sample string 1",
"sample string 2"
],
"_exInfo": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"_dataList": [
{
"ID": "3aea9aec-e799-471e-96cb-a0313a2d6d97",
"StaffID": 2,
"RoleID": "8031f0d7-19b1-4392-8a4d-6a8f9863bae8",
"CategoryID": 4,
"CreateTime": "2025-12-16T23:30:13.3989604+08:00",
"UpdateTime": "2025-12-16T23:30:13.3989604+08:00",
"Type": 7,
"IsOMS": true
},
{
"ID": "3aea9aec-e799-471e-96cb-a0313a2d6d97",
"StaffID": 2,
"RoleID": "8031f0d7-19b1-4392-8a4d-6a8f9863bae8",
"CategoryID": 4,
"CreateTime": "2025-12-16T23:30:13.3989604+08:00",
"UpdateTime": "2025-12-16T23:30:13.3989604+08:00",
"Type": 7,
"IsOMS": true
}
]
}