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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serviceType

ServiceType

Required

roleId

integer

Required

Body Parameters

None.

Response Information

Resource Description

RoleEditModelV2
NameDescriptionTypeAdditional information
BaseInfo

RoleListModel

None.

SetList

Collection of ErpPermissionModuleMixSet

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": [
    {
      "ScmSet": {
        "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
      },
      "AccSet": {
        "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
      }
    },
    {
      "ScmSet": {
        "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
      },
      "AccSet": {
        "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:
<RoleEditModelV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <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>
    <ErpPermissionModuleMixSet>
      <AccSet xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
        <d4p1:_x003C_CtrlAll_x003E_k__BackingField>true</d4p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d4p1:_x003C_Module_x003E_k__BackingField>1</d4p1:_x003C_Module_x003E_k__BackingField>
        <d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d4p1:_x003C_PageSets_x003E_k__BackingField>
          <d4p1:AccPermissionPageSet>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_Order_x003E_k__BackingField>4</d4p1:_x003C_Order_x003E_k__BackingField>
            <d4p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d4p1:_x003C_PageName_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 1</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 3</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
            </d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:AccPermissionPageSet>
          <d4p1:AccPermissionPageSet>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_Order_x003E_k__BackingField>4</d4p1:_x003C_Order_x003E_k__BackingField>
            <d4p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d4p1:_x003C_PageName_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 1</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 3</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
            </d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:AccPermissionPageSet>
        </d4p1:_x003C_PageSets_x003E_k__BackingField>
        <d4p1:_x003C_ShowMoney_x003E_k__BackingField>true</d4p1:_x003C_ShowMoney_x003E_k__BackingField>
      </AccSet>
      <ScmSet xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
        <d4p1:_x003C_CtrlAll_x003E_k__BackingField>true</d4p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d4p1:_x003C_Module_x003E_k__BackingField>1</d4p1:_x003C_Module_x003E_k__BackingField>
        <d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d4p1:_x003C_PageSets_x003E_k__BackingField>
          <d4p1:PermissionPageSetJson>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:PermissionPageSetJson>
          <d4p1:PermissionPageSetJson>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:PermissionPageSetJson>
        </d4p1:_x003C_PageSets_x003E_k__BackingField>
        <d4p1:_x003C_ShowMoney_x003E_k__BackingField>true</d4p1:_x003C_ShowMoney_x003E_k__BackingField>
      </ScmSet>
    </ErpPermissionModuleMixSet>
    <ErpPermissionModuleMixSet>
      <AccSet xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
        <d4p1:_x003C_CtrlAll_x003E_k__BackingField>true</d4p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d4p1:_x003C_Module_x003E_k__BackingField>1</d4p1:_x003C_Module_x003E_k__BackingField>
        <d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d4p1:_x003C_PageSets_x003E_k__BackingField>
          <d4p1:AccPermissionPageSet>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_Order_x003E_k__BackingField>4</d4p1:_x003C_Order_x003E_k__BackingField>
            <d4p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d4p1:_x003C_PageName_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 1</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 3</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
            </d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:AccPermissionPageSet>
          <d4p1:AccPermissionPageSet>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_Order_x003E_k__BackingField>4</d4p1:_x003C_Order_x003E_k__BackingField>
            <d4p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d4p1:_x003C_PageName_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 1</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
              <d7p1:KeyValueOfstringboolean>
                <d7p1:Key>sample string 3</d7p1:Key>
                <d7p1:Value>true</d7p1:Value>
              </d7p1:KeyValueOfstringboolean>
            </d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:AccPermissionPageSet>
        </d4p1:_x003C_PageSets_x003E_k__BackingField>
        <d4p1:_x003C_ShowMoney_x003E_k__BackingField>true</d4p1:_x003C_ShowMoney_x003E_k__BackingField>
      </AccSet>
      <ScmSet xmlns:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
        <d4p1:_x003C_CtrlAll_x003E_k__BackingField>true</d4p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d4p1:_x003C_Module_x003E_k__BackingField>1</d4p1:_x003C_Module_x003E_k__BackingField>
        <d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d4p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d4p1:_x003C_PageSets_x003E_k__BackingField>
          <d4p1:PermissionPageSetJson>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:PermissionPageSetJson>
          <d4p1:PermissionPageSetJson>
            <d4p1:_x003C_IsReport_x003E_k__BackingField>true</d4p1:_x003C_IsReport_x003E_k__BackingField>
            <d4p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d4p1:_x003C_PageText_x003E_k__BackingField>
            <d4p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d4p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d4p1:PermissionPageSetJson>
        </d4p1:_x003C_PageSets_x003E_k__BackingField>
        <d4p1:_x003C_ShowMoney_x003E_k__BackingField>true</d4p1:_x003C_ShowMoney_x003E_k__BackingField>
      </ScmSet>
    </ErpPermissionModuleMixSet>
  </SetList>
</RoleEditModelV2>