GET jxc_api/ErpPermission/GetAccRole?roleId={roleId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
roleId

integer

Required

Body Parameters

None.

Response Information

Resource Description

AccRoleModel
NameDescriptionTypeAdditional information
RoleName

string

None.

RoleId

integer

None.

Permissions

Collection of string

None.

ScmPermission

Collection of PermissionModuleSetJson

None.

Response Formats

application/json, text/json

Sample:
{
  "RoleName": "sample string 1",
  "RoleId": 2,
  "Permissions": [
    "sample string 1",
    "sample string 2"
  ],
  "ScmPermission": [
    {
      "Module": 1,
      "CtrlAll": true,
      "PageSets": [
        {
          "PageText": "sample string 1",
          "IsReport": true,
          "PermissionSet": "sample string 3"
        },
        {
          "PageText": "sample string 1",
          "IsReport": true,
          "PermissionSet": "sample string 3"
        }
      ],
      "ShowMoney": true,
      "OwnShowMoneyProperty": true
    },
    {
      "Module": 1,
      "CtrlAll": true,
      "PageSets": [
        {
          "PageText": "sample string 1",
          "IsReport": true,
          "PermissionSet": "sample string 3"
        },
        {
          "PageText": "sample string 1",
          "IsReport": true,
          "PermissionSet": "sample string 3"
        }
      ],
      "ShowMoney": true,
      "OwnShowMoneyProperty": true
    }
  ]
}

application/xml, text/xml

Sample:
<AccRoleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <_x003C_Permissions_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </_x003C_Permissions_x003E_k__BackingField>
  <_x003C_RoleId_x003E_k__BackingField>2</_x003C_RoleId_x003E_k__BackingField>
  <_x003C_RoleName_x003E_k__BackingField>sample string 1</_x003C_RoleName_x003E_k__BackingField>
  <_x003C_ScmPermission_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
    <d2p1:PermissionModuleSetJson>
      <d2p1:_x003C_CtrlAll_x003E_k__BackingField>true</d2p1:_x003C_CtrlAll_x003E_k__BackingField>
      <d2p1:_x003C_Module_x003E_k__BackingField>1</d2p1:_x003C_Module_x003E_k__BackingField>
      <d2p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d2p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
      <d2p1:_x003C_PageSets_x003E_k__BackingField>
        <d2p1:PermissionPageSetJson>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:PermissionPageSetJson>
        <d2p1:PermissionPageSetJson>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:PermissionPageSetJson>
      </d2p1:_x003C_PageSets_x003E_k__BackingField>
      <d2p1:_x003C_ShowMoney_x003E_k__BackingField>true</d2p1:_x003C_ShowMoney_x003E_k__BackingField>
    </d2p1:PermissionModuleSetJson>
    <d2p1:PermissionModuleSetJson>
      <d2p1:_x003C_CtrlAll_x003E_k__BackingField>true</d2p1:_x003C_CtrlAll_x003E_k__BackingField>
      <d2p1:_x003C_Module_x003E_k__BackingField>1</d2p1:_x003C_Module_x003E_k__BackingField>
      <d2p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d2p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
      <d2p1:_x003C_PageSets_x003E_k__BackingField>
        <d2p1:PermissionPageSetJson>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:PermissionPageSetJson>
        <d2p1:PermissionPageSetJson>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:PermissionPageSetJson>
      </d2p1:_x003C_PageSets_x003E_k__BackingField>
      <d2p1:_x003C_ShowMoney_x003E_k__BackingField>true</d2p1:_x003C_ShowMoney_x003E_k__BackingField>
    </d2p1:PermissionModuleSetJson>
  </_x003C_ScmPermission_x003E_k__BackingField>
</AccRoleModel>