GET jxc_api/ErpPermission/GetUser?userSn={userSn}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userSn

integer

Required

Body Parameters

None.

Response Information

Resource Description

UserPageViewModel
NameDescriptionTypeAdditional information
UserModel

UserModel

None.

Permission

MixPermission

None.

Response Formats

application/json, text/json

Sample:
{
  "UserModel": {
    "UserSn": 1,
    "IsAdmin": true,
    "IsSuperAdmin": true,
    "UserName": "sample string 4",
    "Mobile": "sample string 5",
    "DptId": 6,
    "DptName": "sample string 7",
    "Postion": "sample string 8",
    "Roles": [
      {
        "RoleId": 1,
        "RoleName": "sample string 2",
        "IsAdmin": true,
        "IsAccRole": true
      },
      {
        "RoleId": 1,
        "RoleName": "sample string 2",
        "IsAdmin": true,
        "IsAccRole": true
      }
    ],
    "CanViewAllBill": true,
    "CanOpeAllWh": true,
    "OpeWhList": [
      1,
      2
    ]
  },
  "Permission": {
    "IsAdmin": true,
    "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
      }
    ],
    "AccPermission": {
      "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:
<UserPageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi.Areas.Setting.Models.Permission">
  <Permission>
    <AccPermission>
      <_x003C_Permissions_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1: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:d4p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
        <d4p1:PermissionModuleSetJson>
          <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>
        </d4p1:PermissionModuleSetJson>
        <d4p1:PermissionModuleSetJson>
          <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>
        </d4p1:PermissionModuleSetJson>
      </_x003C_ScmPermission_x003E_k__BackingField>
    </AccPermission>
    <AccSetList xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
      <d3p1:AccPermissionModuleSet>
        <d3p1:_x003C_CtrlAll_x003E_k__BackingField>true</d3p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d3p1:_x003C_Module_x003E_k__BackingField>1</d3p1:_x003C_Module_x003E_k__BackingField>
        <d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d3p1:_x003C_PageSets_x003E_k__BackingField>
          <d3p1:AccPermissionPageSet>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_Order_x003E_k__BackingField>4</d3p1:_x003C_Order_x003E_k__BackingField>
            <d3p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d3p1:_x003C_PageName_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_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>
            </d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:AccPermissionPageSet>
          <d3p1:AccPermissionPageSet>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_Order_x003E_k__BackingField>4</d3p1:_x003C_Order_x003E_k__BackingField>
            <d3p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d3p1:_x003C_PageName_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_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>
            </d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:AccPermissionPageSet>
        </d3p1:_x003C_PageSets_x003E_k__BackingField>
        <d3p1:_x003C_ShowMoney_x003E_k__BackingField>true</d3p1:_x003C_ShowMoney_x003E_k__BackingField>
      </d3p1:AccPermissionModuleSet>
      <d3p1:AccPermissionModuleSet>
        <d3p1:_x003C_CtrlAll_x003E_k__BackingField>true</d3p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d3p1:_x003C_Module_x003E_k__BackingField>1</d3p1:_x003C_Module_x003E_k__BackingField>
        <d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d3p1:_x003C_PageSets_x003E_k__BackingField>
          <d3p1:AccPermissionPageSet>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_Order_x003E_k__BackingField>4</d3p1:_x003C_Order_x003E_k__BackingField>
            <d3p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d3p1:_x003C_PageName_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_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>
            </d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:AccPermissionPageSet>
          <d3p1:AccPermissionPageSet>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_Order_x003E_k__BackingField>4</d3p1:_x003C_Order_x003E_k__BackingField>
            <d3p1:_x003C_PageName_x003E_k__BackingField>sample string 2</d3p1:_x003C_PageName_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_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>
            </d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:AccPermissionPageSet>
        </d3p1:_x003C_PageSets_x003E_k__BackingField>
        <d3p1:_x003C_ShowMoney_x003E_k__BackingField>true</d3p1:_x003C_ShowMoney_x003E_k__BackingField>
      </d3p1:AccPermissionModuleSet>
    </AccSetList>
    <IsAdmin>true</IsAdmin>
    <SetList xmlns:d3p1="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
      <d3p1:PermissionModuleSetJson>
        <d3p1:_x003C_CtrlAll_x003E_k__BackingField>true</d3p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d3p1:_x003C_Module_x003E_k__BackingField>1</d3p1:_x003C_Module_x003E_k__BackingField>
        <d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d3p1:_x003C_PageSets_x003E_k__BackingField>
          <d3p1:PermissionPageSetJson>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:PermissionPageSetJson>
          <d3p1:PermissionPageSetJson>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:PermissionPageSetJson>
        </d3p1:_x003C_PageSets_x003E_k__BackingField>
        <d3p1:_x003C_ShowMoney_x003E_k__BackingField>true</d3p1:_x003C_ShowMoney_x003E_k__BackingField>
      </d3p1:PermissionModuleSetJson>
      <d3p1:PermissionModuleSetJson>
        <d3p1:_x003C_CtrlAll_x003E_k__BackingField>true</d3p1:_x003C_CtrlAll_x003E_k__BackingField>
        <d3p1:_x003C_Module_x003E_k__BackingField>1</d3p1:_x003C_Module_x003E_k__BackingField>
        <d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</d3p1:_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
        <d3p1:_x003C_PageSets_x003E_k__BackingField>
          <d3p1:PermissionPageSetJson>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:PermissionPageSetJson>
          <d3p1:PermissionPageSetJson>
            <d3p1:_x003C_IsReport_x003E_k__BackingField>true</d3p1:_x003C_IsReport_x003E_k__BackingField>
            <d3p1:_x003C_PageText_x003E_k__BackingField>sample string 1</d3p1:_x003C_PageText_x003E_k__BackingField>
            <d3p1:_x003C_PermissionSet_x003E_k__BackingField>sample string 3</d3p1:_x003C_PermissionSet_x003E_k__BackingField>
          </d3p1:PermissionPageSetJson>
        </d3p1:_x003C_PageSets_x003E_k__BackingField>
        <d3p1:_x003C_ShowMoney_x003E_k__BackingField>true</d3p1:_x003C_ShowMoney_x003E_k__BackingField>
      </d3p1:PermissionModuleSetJson>
    </SetList>
  </Permission>
  <UserModel>
    <CanOpeAllWh>true</CanOpeAllWh>
    <CanViewAllBill>true</CanViewAllBill>
    <DptId>6</DptId>
    <DptName>sample string 7</DptName>
    <IsAdmin>true</IsAdmin>
    <IsSuperAdmin>true</IsSuperAdmin>
    <Mobile>sample string 5</Mobile>
    <OpeWhList xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </OpeWhList>
    <Postion>sample string 8</Postion>
    <Roles>
      <RoleSimpleModel>
        <IsAccRole>true</IsAccRole>
        <IsAdmin>true</IsAdmin>
        <RoleId>1</RoleId>
        <RoleName>sample string 2</RoleName>
      </RoleSimpleModel>
      <RoleSimpleModel>
        <IsAccRole>true</IsAccRole>
        <IsAdmin>true</IsAdmin>
        <RoleId>1</RoleId>
        <RoleName>sample string 2</RoleName>
      </RoleSimpleModel>
    </Roles>
    <UserName>sample string 4</UserName>
    <UserSn>1</UserSn>
  </UserModel>
</UserPageViewModel>