GET api/permission/getuserpermission?userId={userId}
获取当前指定权限
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
获取当前指定权限
JsonRtnDtoOfListOfActionPermissionDtoName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Collection of ActionPermissionDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": [ { "PermissionOrigin": 1, "Id": "sample string 1", "ActionType": 2, "PId": "sample string 3", "ActionName": "sample string 4", "ControllerName": "sample string 5", "Description": "sample string 6", "IsSystem": true, "IsEnabled": true, "Sort": 1, "CreatedTime": "2024-09-25T00:09:56.3124868+08:00" }, { "PermissionOrigin": 1, "Id": "sample string 1", "ActionType": 2, "PId": "sample string 3", "ActionName": "sample string 4", "ControllerName": "sample string 5", "Description": "sample string 6", "IsSystem": true, "IsEnabled": true, "Sort": 1, "CreatedTime": "2024-09-25T00:09:56.3124868+08:00" } ] }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":[{"PermissionOrigin":1,"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:09:56.3124868+08:00"},{"PermissionOrigin":1,"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:09:56.3124868+08:00"}]}
application/xml, text/xml
Sample:
<JsonRtnDtoOfArrayOfActionPermissionDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data> <ActionPermissionDto> <ActionName xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 4</ActionName> <ActionType xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2</ActionType> <ControllerName xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 5</ControllerName> <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:09:56.3124868+08:00</CreatedTime> <Description xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</Description> <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 1</Id> <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsEnabled> <IsSystem xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsSystem> <PId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 3</PId> <Sort xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">1</Sort> <PermissionOrigin>角色</PermissionOrigin> </ActionPermissionDto> <ActionPermissionDto> <ActionName xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 4</ActionName> <ActionType xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2</ActionType> <ControllerName xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 5</ControllerName> <CreatedTime xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">2024-09-25T00:09:56.3124868+08:00</CreatedTime> <Description xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 6</Description> <Id xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 1</Id> <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsEnabled> <IsSystem xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">true</IsSystem> <PId xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">sample string 3</PId> <Sort xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">1</Sort> <PermissionOrigin>角色</PermissionOrigin> </ActionPermissionDto> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfArrayOfActionPermissionDtov3CTEUQJ>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":[{"PermissionOrigin":1,"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:09:56.3124868+08:00"},{"PermissionOrigin":1,"Id":"sample string 1","ActionType":2,"PId":"sample string 3","ActionName":"sample string 4","ControllerName":"sample string 5","Description":"sample string 6","IsSystem":true,"IsEnabled":true,"Sort":1,"CreatedTime":"2024-09-25T00:09:56.3124868+08:00"}]});