POST jxc_api/ErpPermission/GetPermissionV2

Request Information

URI Parameters

None.

Body Parameters

MixRoleOptions
NameDescriptionTypeAdditional information
RoleIds

Collection of integer

None.

AccRoleId

integer

None.

ServiceType

ServiceType

None.

Request Formats

application/json, text/json

Sample:
{
  "RoleIds": [
    1,
    2
  ],
  "AccRoleId": 1,
  "ServiceType": 1
}

application/xml, text/xml

Sample:
<MixRoleOptions xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <AccRoleId>1</AccRoleId>
  <RoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RoleIds>
  <ServiceType>scm</ServiceType>
</MixRoleOptions>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MixPermissionV2
NameDescriptionTypeAdditional information
IsAdmin

boolean

None.

SetList

Collection of ErpPermissionModuleMixSet

None.

Response Formats

application/json, text/json

Sample:
{
  "IsAdmin": true,
  "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:
<MixPermissionV2 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <IsAdmin>true</IsAdmin>
  <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>
</MixPermissionV2>