GET jxc_api/ErpPermission/GetRole?serviceType={serviceType}&roleId={roleId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceType

ServiceType

Required

roleId

integer

Required

Body Parameters

None.

Response Information

Resource Description

RoleEditModel
NameDescriptionTypeAdditional information
BaseInfo

RoleListModel

None.

SetList

Collection of PermissionModuleSetJson

None.

AccSetList

Collection of AccPermissionModuleSet

None.

Response Formats

application/json, text/json

Sample:
{
  "BaseInfo": {
    "RoleId": 1,
    "RoleName": "sample string 2",
    "IsAccRole": true,
    "IsAdmin": true,
    "Users": [
      {
        "UserSn": 1,
        "UserName": "sample string 2"
      },
      {
        "UserSn": 1,
        "UserName": "sample string 2"
      }
    ]
  },
  "SetList": [
    {
      "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
    }
  ],
  "AccSetList": [
    {
      "Module": 1,
      "PageSets": [
        {
          "PageText": "sample string 1",
          "PageName": "sample string 2",
          "IsReport": true,
          "Order": 4,
          "PermissionSet": {
            "sample string 1": true,
            "sample string 3": true
          }
        },
        {
          "PageText": "sample string 1",
          "PageName": "sample string 2",
          "IsReport": true,
          "Order": 4,
          "PermissionSet": {
            "sample string 1": true,
            "sample string 3": true
          }
        }
      ],
      "CtrlAll": true,
      "ShowMoney": true,
      "OwnShowMoneyProperty": true
    },
    {
      "Module": 1,
      "PageSets": [
        {
          "PageText": "sample string 1",
          "PageName": "sample string 2",
          "IsReport": true,
          "Order": 4,
          "PermissionSet": {
            "sample string 1": true,
            "sample string 3": true
          }
        },
        {
          "PageText": "sample string 1",
          "PageName": "sample string 2",
          "IsReport": true,
          "Order": 4,
          "PermissionSet": {
            "sample string 1": true,
            "sample string 3": true
          }
        }
      ],
      "CtrlAll": true,
      "ShowMoney": true,
      "OwnShowMoneyProperty": true
    }
  ]
}

application/xml, text/xml

Sample:
<RoleEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <AccSetList xmlns:d2p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
    <d2p1:AccPermissionModuleSet>
      <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:AccPermissionPageSet>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_Order_x003E_k__BackingField>4</d2p1:_x003C_Order_x003E_k__BackingField>
          <d2p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d2p1:_x003C_PageName_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
          </d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:AccPermissionPageSet>
        <d2p1:AccPermissionPageSet>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_Order_x003E_k__BackingField>4</d2p1:_x003C_Order_x003E_k__BackingField>
          <d2p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d2p1:_x003C_PageName_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
          </d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:AccPermissionPageSet>
      </d2p1:_x003C_PageSets_x003E_k__BackingField>
      <d2p1:_x003C_ShowMoney_x003E_k__BackingField>true</d2p1:_x003C_ShowMoney_x003E_k__BackingField>
    </d2p1:AccPermissionModuleSet>
    <d2p1:AccPermissionModuleSet>
      <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:AccPermissionPageSet>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_Order_x003E_k__BackingField>4</d2p1:_x003C_Order_x003E_k__BackingField>
          <d2p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d2p1:_x003C_PageName_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
          </d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:AccPermissionPageSet>
        <d2p1:AccPermissionPageSet>
          <d2p1:_x003C_IsReport_x003E_k__BackingField>true</d2p1:_x003C_IsReport_x003E_k__BackingField>
          <d2p1:_x003C_Order_x003E_k__BackingField>4</d2p1:_x003C_Order_x003E_k__BackingField>
          <d2p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d2p1:_x003C_PageName_x003E_k__BackingField>
          <d2p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d2p1:_x003C_PageText_x003E_k__BackingField>
          <d2p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 1</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
            <d6p1:KeyValueOfstringboolean>
              <d6p1:Key>sample string 3</d6p1:Key>
              <d6p1:Value>true</d6p1:Value>
            </d6p1:KeyValueOfstringboolean>
          </d2p1:_x003C_PermissionSet_x003E_k__BackingField>
        </d2p1:AccPermissionPageSet>
      </d2p1:_x003C_PageSets_x003E_k__BackingField>
      <d2p1:_x003C_ShowMoney_x003E_k__BackingField>true</d2p1:_x003C_ShowMoney_x003E_k__BackingField>
    </d2p1:AccPermissionModuleSet>
  </AccSetList>
  <BaseInfo>
    <IsAccRole>true</IsAccRole>
    <IsAdmin>true</IsAdmin>
    <RoleId>1</RoleId>
    <RoleName>sample string 2</RoleName>
    <Users xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models">
      <d3p1:UserSnAndName>
        <d3p1:UserName>sample string 2</d3p1:UserName>
        <d3p1:UserSn>1</d3p1:UserSn>
      </d3p1:UserSnAndName>
      <d3p1:UserSnAndName>
        <d3p1:UserName>sample string 2</d3p1:UserName>
        <d3p1:UserSn>1</d3p1:UserSn>
      </d3p1:UserSnAndName>
    </Users>
  </BaseInfo>
  <SetList 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>
  </SetList>
</RoleEditModel>